Skip to content

Commit 430c332

Browse files
committed
chore: fix mypy pre-commit hook
1 parent ae97196 commit 430c332

File tree

10 files changed

+28
-11
lines changed

10 files changed

+28
-11
lines changed

.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)