-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
43 lines (42 loc) · 1.02 KB
/
pyproject.toml
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
[tool.mypy]
plugins = "pydantic.v1.mypy"
exclude = [
"setup.py",
"venv/",
]
platform = "linux"
show_error_codes = true
follow_imports = "normal"
local_partial_types = true
strict_equality = true
no_implicit_optional = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
disable_error_code = [
"import-untyped",
# Using aliases with Pydantic, overhaul with v2
"call-arg",
# TODO: Cleanup tests that don't pass this check
"comparison-overlap",
]
extra_checks = false
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true
# Additional checks
ignore_missing_imports = true
disallow_any_generics = true
no_implicit_reexport = true
warn_no_return = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true