-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmypy.ini
More file actions
55 lines (43 loc) · 1.1 KB
/
mypy.ini
File metadata and controls
55 lines (43 loc) · 1.1 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
[mypy]
python_version = 3.10
strict = true
check_untyped_defs = true
disallow_any_generics = true
disallow_any_unimported = true
disallow_any_expr = False # Too strict for numpy
disallow_any_decorated = False # Too strict for dataclasses
disallow_any_explicit = False # Allow explicit Any when needed
disallow_subclassing_any = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
no_implicit_optional = true
strict_optional = true
enable_error_code = ignore-without-code
mypy_path = stubs
# Per-module options
[mypy-numpy.*]
ignore_missing_imports = true
[mypy-scipy.*]
ignore_missing_imports = true
[mypy-sklearn.*]
ignore_missing_imports = true
[mypy-matplotlib.*]
ignore_missing_imports = true
[mypy-cv2.*]
ignore_missing_imports = true
[mypy-cupy.*]
ignore_missing_imports = true
[mypy-numba.*]
ignore_missing_imports = true
[mypy-pytest.*]
ignore_missing_imports = true
[mypy-tqdm.*]
ignore_missing_imports = true
[mypy-psutil.*]
ignore_missing_imports = true
[mypy-smbus.*]
ignore_missing_imports = false
[mypy-skimage.*]
ignore_missing_imports = false