-
Notifications
You must be signed in to change notification settings - Fork 104
/
mypy.ini
48 lines (40 loc) · 1.33 KB
/
mypy.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[mypy]
plugins = pydantic.mypy
disallow_untyped_defs = false
disallow_untyped_calls = false
disallow_untyped_decorators = false
disallow_incomplete_defs = false
check_untyped_defs = true
strict_equality = true
warn_redundant_casts = true
warn_unused_ignores = true
# First two excludes are due to:
# 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")
# Third exclude is due to:
# error: Cannot find implementation or library stub for module named "migrate_code" [import-not-found]
exclude = (?x)(
^tests/test-pip-repositories/fake-private-package-1.0.0/setup\.py$
| ^tests/test-local-pip/setup\.py$
| ^conda_lock/scripts/vendor_poetry/
)
# https://github.com/python/mypy/issues/12664
incremental = false
[mypy-conda_lock.*]
disallow_untyped_defs = true
# disallow_untyped_calls = true
# disallow_untyped_decorators = true
disallow_incomplete_defs = true
[pydantic-mypy]
# <https://docs.pydantic.dev/latest/integrations/mypy/#configuring-the-plugin>
init_forbid_extra = True
init_typed = True
warn_required_dynamic_aliases = True
warn_untyped_fields = True
[mypy-conda_lock._vendor.*]
ignore_errors = True
[mypy-clikit.*]
ignore_missing_imports = True
[mypy-docker.*]
ignore_missing_imports = True
[mypy-flaky.*]
ignore_missing_imports = True