1
1
[mypy]
2
2
plugins = pydantic.mypy
3
- # disallow_untyped_calls = true
4
- # disallow_untyped_decorators = false
5
3
disallow_untyped_defs = false
6
4
disallow_untyped_calls = false
7
5
disallow_untyped_decorators = false
8
6
disallow_incomplete_defs = false
9
7
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]
10
16
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/
12
20
)
13
21
22
+ # https://github.com/python/mypy/issues/12664
23
+ incremental = false
24
+
14
25
[mypy-conda_lock.*]
15
26
disallow_untyped_defs = true
16
27
# disallow_untyped_calls = true
17
28
# disallow_untyped_decorators = true
18
29
disallow_incomplete_defs = true
19
30
20
31
[pydantic-mypy]
32
+ # <https://docs.pydantic.dev/latest/integrations/mypy/#configuring-the-plugin>
21
33
init_forbid_extra = True
22
34
init_typed = True
23
35
warn_required_dynamic_aliases = True
@@ -26,22 +38,11 @@ warn_untyped_fields = True
26
38
[mypy-conda_lock._vendor.*]
27
39
ignore_errors = True
28
40
29
- [mypy-poetry.*]
30
- ignore_missing_imports = True
31
-
32
41
[mypy-clikit.*]
33
42
ignore_missing_imports = True
34
43
35
44
[mypy-docker.*]
36
45
ignore_missing_imports = True
37
46
38
- [mypy-ensureconda.*]
39
- ignore_missing_imports = True
40
-
41
47
[mypy-flaky.*]
42
48
ignore_missing_imports = True
43
-
44
- [mypy-click_default_group.*]
45
- ignore_missing_imports = True
46
-
47
- [mypy-tests.*]
0 commit comments