Skip to content

Commit 2e7f1b8

Browse files
committed
Clean up mypy.ini
1 parent 4318a21 commit 2e7f1b8

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

mypy.ini

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,35 @@
11
[mypy]
22
plugins = pydantic.mypy
3-
# disallow_untyped_calls = true
4-
# disallow_untyped_decorators = false
53
disallow_untyped_defs = false
64
disallow_untyped_calls = false
75
disallow_untyped_decorators = false
86
disallow_incomplete_defs = false
97
check_untyped_defs = true
8+
strict_equality = true
9+
warn_redundant_casts = true
10+
warn_unused_ignores = true
11+
12+
# First two excludes are due to:
13+
# tests/test-pip-repositories/fake-private-package-1.0.0/setup.py: error: Duplicate module named "setup" (also at "tests/test-local-pip/setup.py")
14+
# Third exclude is due to:
15+
# error: Cannot find implementation or library stub for module named "migrate_code" [import-not-found]
1016
exclude = (?x)(
11-
tests/test-local-pip/setup.py
17+
^tests/test-pip-repositories/fake-private-package-1.0.0/setup\.py$
18+
| ^tests/test-local-pip/setup\.py$
19+
| ^conda_lock/scripts/vendor_poetry/
1220
)
1321

22+
# https://github.com/python/mypy/issues/12664
23+
incremental = false
24+
1425
[mypy-conda_lock.*]
1526
disallow_untyped_defs = true
1627
# disallow_untyped_calls = true
1728
# disallow_untyped_decorators = true
1829
disallow_incomplete_defs = true
1930

2031
[pydantic-mypy]
32+
# <https://docs.pydantic.dev/latest/integrations/mypy/#configuring-the-plugin>
2133
init_forbid_extra = True
2234
init_typed = True
2335
warn_required_dynamic_aliases = True
@@ -26,22 +38,11 @@ warn_untyped_fields = True
2638
[mypy-conda_lock._vendor.*]
2739
ignore_errors = True
2840

29-
[mypy-poetry.*]
30-
ignore_missing_imports = True
31-
3241
[mypy-clikit.*]
3342
ignore_missing_imports = True
3443

3544
[mypy-docker.*]
3645
ignore_missing_imports = True
3746

38-
[mypy-ensureconda.*]
39-
ignore_missing_imports = True
40-
4147
[mypy-flaky.*]
4248
ignore_missing_imports = True
43-
44-
[mypy-click_default_group.*]
45-
ignore_missing_imports = True
46-
47-
[mypy-tests.*]

0 commit comments

Comments
 (0)