-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmypy.ini
More file actions
39 lines (32 loc) · 832 Bytes
/
mypy.ini
File metadata and controls
39 lines (32 loc) · 832 Bytes
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
[mypy]
# Global mypy configuration for Code Inventory project
python_version = 3.10
warn_return_any = True
warn_unused_configs = True
disallow_untyped_defs = True
disallow_any_unimported = False
no_implicit_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_no_return = True
check_untyped_defs = True
strict_optional = True
# Output
show_error_codes = True
show_column_numbers = True
pretty = True
# Paths to check
files = src/, scripts/, tests/
# Third-party libraries without type stubs
[mypy-tqdm.*]
ignore_missing_imports = True
[mypy-sentry_sdk.*]
ignore_missing_imports = True
[mypy-pytest.*]
ignore_missing_imports = True
[mypy-coverage.*]
ignore_missing_imports = True
# Allow untyped definitions in test files initially
[mypy-tests.*]
disallow_untyped_defs = False
check_untyped_defs = True