-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmypy.ini
More file actions
50 lines (42 loc) · 1.12 KB
/
mypy.ini
File metadata and controls
50 lines (42 loc) · 1.12 KB
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
[mypy]
python_version = 3.9
plugins = pydantic.mypy
warn_unused_configs = True
warn_unreachable = True
warn_redundant_casts=True
warn_unused_ignores=True
# flake8-mypy expects the two following for sensible formatting
show_column_numbers=True
show_error_context=False
disallow_untyped_defs=True
disallow_untyped_calls=True
disallow_untyped_decorators = True
disallow_incomplete_defs = True
disallow_any_generics = True
strict_optional=True
check_untyped_defs=True
no_implicit_optional = True
follow_imports = normal
no_implicit_reexport = True
# How imports are handled
ignore_missing_imports = False
# Enforce various type annotations
disallow_any_unimported = True
disallow_any_expr = False
disallow_any_decorated = False
disallow_any_explicit = False
disallow_subclassing_any = True
# Various code quality checks
warn_no_return = True
warn_return_any = True
allow_untyped_globals = False
allow_redefinition = False
strict_equality = True
# How error messages are printed
show_error_codes = True
pretty = True
[pydantic-mypy]
init_forbid_extra = True
init_typed = True
warn_required_dynamic_aliases = True
warn_untyped_fields = True