pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python-gitlab/python-gitlab/commit/bd50df6b963af39b70ea2db50fb2f30b55ddc196

chore: fix mypy pre-commit hook · python-gitlab/python-gitlab@bd50df6 · GitHub
Skip to content

Commit bd50df6

Browse files
nejchJohnVillalovos
authored andcommitted
chore: fix mypy pre-commit hook
1 parent 8e27721 commit bd50df6

10 files changed

Lines changed: 28 additions & 11 deletions

File tree

.mypy.ini

Lines changed: 0 additions & 9 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ repos:
2121
hooks:
2222
- id: isort
2323
- repo: https://github.com/pre-commit/mirrors-mypy
24-
rev: v0.812
24+
rev: v0.910
2525
hooks:
2626
- id: mypy
27+
additional_dependencies:
28+
# todo: sync with pip deps via renovate regex manager
29+
- types-PyYAML==5.4.3
30+
- types-requests==2.25.1

docs/__init__.py

Whitespace-only changes.

pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,28 @@ profile = "black"
33
multi_line_output = 3
44
order_by_type = false
55

6+
[tool.mypy]
7+
disallow_incomplete_defs = true
8+
disallow_untyped_defs = true
9+
10+
[[tool.mypy.overrides]] # Overrides for currently untyped modules
11+
module = [
12+
"docs.*",
13+
"docs.ext.*",
14+
"gitlab.v4.objects.*",
15+
"setup",
16+
"tests.functional.*",
17+
"tests.functional.api.*",
18+
"tests.unit.*"
19+
]
20+
ignore_errors = true
21+
22+
[[tool.mypy.overrides]] # Overrides to negate above patterns
23+
module = [
24+
"gitlab.v4.objects.projects"
25+
]
26+
ignore_errors = false
27+
628
[tool.semantic_release]
729
version_variable = "gitlab/__version__.py:__version__"
830
commit_subject = "chore: release v{version}"

tests/__init__.py

Whitespace-only changes.

tests/functional/__init__.py

Whitespace-only changes.

tests/functional/api/__init__.py

Whitespace-only changes.

tests/functional/cli/__init__.py

Whitespace-only changes.

tests/unit/mixins/__init__.py

Whitespace-only changes.

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ basepython = python3
4141
envdir={toxworkdir}/lint
4242
deps = -r{toxinidir}/requirements-lint.txt
4343
commands =
44-
mypy {posargs}
44+
mypy {posargs} .
4545

4646
[testenv:twine-check]
4747
basepython = python3

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy