-
Notifications
You must be signed in to change notification settings - Fork 534
Expand file tree
/
Copy pathmypy-gpl.ini
More file actions
57 lines (52 loc) · 1.66 KB
/
mypy-gpl.ini
File metadata and controls
57 lines (52 loc) · 1.66 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
51
52
53
54
55
56
57
# NOTE: Keep this is sync with the tool.mypy sections of pyproject.toml!
[mypy]
explicit_package_bases = true
mypy_path = $MYPY_CONFIG_FILE_DIR/omd/packages/omd:$MYPY_CONFIG_FILE_DIR/tests/typeshed
plugins = pydantic.mypy
python_version = 3.13
scripts_are_modules = true
# do not descend into 3rd party dependencies
follow_imports = silent
follow_imports_for_stubs = true
# hidden flags for PEP 688 compat, see https://github.com/python/mypy/issues/15313
disable_bytearray_promotion = true
disable_memoryview_promotion = true
# checks enabled via --strict
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
extra_checks = true
no_implicit_reexport = true
strict_bytes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
# additional checks not enabled via --strict
disallow_any_decorated = true
disallow_any_explicit = false # lots of findings all over the place
disallow_any_expr = false # lots of findings all over the place
disallow_any_unimported = false # lots of findings all over the place
strict_equality_for_none = true
warn_unreachable = true
# error codes which are not enabled by default
enable_error_code = [
"deprecated",
"exhaustive-match",
# "explicit-override", # lots of findings all over the place
"ignore-without-code",
"mutable-override",
"possibly-undefined",
"redundant-expr",
"redundant-self",
"truthy-bool",
"truthy-iterable",
"unimported-reveal",
"unused-awaitable",
"unused-ignore",
]