-
-
Notifications
You must be signed in to change notification settings - Fork 261
/
mypy.ini
57 lines (42 loc) · 1.31 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
[mypy]
# TODO: turn on.
check_untyped_defs = False
no_implicit_optional = True
warn_unused_configs = True
# TODO: enable `warn_unused_ignores` and `warn_reudandant_casts` once we drop Python 2. Otherwise,
# we need it because some ignores depend on which interpreter we use.
warn_redundant_casts = False
warn_unused_ignores = False
warn_no_return = True
warn_return_any = True
warn_unreachable = True
implicit_reexport = False
strict_equality = True
show_error_context = True
show_column_numbers = True
show_error_codes = True
pretty = True
[mypy-pex.third_party.*]
ignore_missing_imports = True
[mypy-appdirs]
ignore_missing_imports = True
[mypy-coloredlogs]
ignore_missing_imports = True
[mypy-colors]
ignore_missing_imports = True
[mypy-ConfigParser]
ignore_missing_imports = True
[mypy-coverage]
ignore_missing_imports = True
[mypy-redbaron]
ignore_missing_imports = True
# TODO: Once we can upgrade to Pytest 6, turn this off.
[mypy-pytest]
ignore_missing_imports = True
[mypy-pkg_resources]
ignore_missing_imports = True
[mypy-hatchling.*]
# Currently we use one venv for MyPy checks and the hatchling requirements are not compatible with
# the rest; so we ignore. Ideally pex.hatchling build backend type-checking would be segregated as
# scripts are today and each with its own venv.
ignore_missing_imports = True