-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypy.ini
59 lines (47 loc) · 1.17 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
49
50
51
52
53
54
55
56
57
58
59
# Global options:
; See doc at https://mypy.readthedocs.io/en/stable/config_file.html
[mypy]
follow_imports = silent
python_version = 3.10
plugins = pydantic.mypy
exclude = (?x)(
^build/
)
## Disallow dynamic typing
disallow_any_unimported = true
disallow_any_expr = true
disallow_any_decorated = true
disallow_any_explicit = true
disallow_any_generics = true
disallow_subclassing_any = true
## Untyped definitions and calls
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
## Configuring warnings
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
## Miscellaneous strictness flags
local_partial_types = true
implicit_reexport = false
strict_equality = true
strict = true
## Configuring error messages
; show_error_context = true
pretty = true
## Miscellaneous
scripts_are_modules = true
warn_unused_configs = true
# Per-module options:
[mypy-tests.*]
disallow_untyped_defs = false
[mypy-phir.model]
disallow_any_explicit = false
[pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true