-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypy.ini
65 lines (42 loc) · 1.75 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
60
61
62
63
64
65
# Global options:
[mypy]
plugins = pydantic.mypy
python_version = 3.8
allow_untyped_globals=True
# Disallows calling functions without type annotations from functions with type annotations.
disallow_untyped_calls=False
# Disallows defining functions without type annotations or with incomplete type annotations.
disallow_untyped_defs=False
# Disallows defining functions with incomplete type annotations.
disallow_incomplete_defs=False
warn_unused_configs = False
# Suppresses error messages about imports that cannot be resolved.
# ignore_missing_imports = True
allow_redefinition = True
# Disallows usage of types that come from unfollowed imports (anything imported from an unfollowed import is automatically given a type of `Any`).
disallow_any_unimported = False
# Shows a warning when encountering any code inferred to be unreachable or redundant after performing type analysis.
warn_unreachable=False
# Type-checks the interior of functions without type annotations.
# default -> False
check_untyped_defs = True
# Shows error codes in error messages. See [Error codes](https://mypy.readthedocs.io/en/stable/error_codes.html#error-codes) for more information.
show_error_codes = True
# Warns about unneeded `# type: ignore` comments.
warn_unused_ignores = False
# Warns about casting an expression to its inferred type.
warn_redundant_casts = False
# Shows errors for missing return statements on some execution paths.
warn_return_any = False
# ignore_missing_imports = True
# follow_imports = silent
no_implicit_reexport = True
no_implicit_optional=True
# Per-module options:
[pydantic-mypy]
init_forbid_extra = True
init_typed = True
warn_required_dynamic_aliases = True
warn_untyped_fields = True
[mypy-sqlalchemy.*,jwt]
ignore_missing_imports = True