-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmypy.ini
More file actions
62 lines (49 loc) · 1.21 KB
/
mypy.ini
File metadata and controls
62 lines (49 loc) · 1.21 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
58
59
60
61
62
[mypy]
python_version = 3.12
warn_return_any = True
warn_unused_configs = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
disallow_untyped_decorators = True
no_implicit_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_no_return = True
warn_unreachable = True
strict_equality = True
extra_checks = True
# Show error codes
show_error_codes = True
# Be strict about third party packages
no_implicit_reexport = True
strict_optional = True
# Paths
files = src/
mypy_path = src/
# Third-party packages without stubs
[mypy-psutil.*]
ignore_missing_imports = True
[mypy-cv2.*]
ignore_missing_imports = True
[mypy-numpy.*]
ignore_missing_imports = True
[mypy-PIL.*]
ignore_missing_imports = True
[mypy-paramiko.*]
ignore_missing_imports = True
[mypy-websocket.*]
ignore_missing_imports = True
[mypy-aiofiles.*]
ignore_missing_imports = True
# Specific module configurations
[mypy-src.oaDeviceAPI.core.*]
disallow_any_generics = True
disallow_any_unimported = True
disallow_subclassing_any = True
[mypy-src.oaDeviceAPI.models.*]
disallow_any_generics = True
[mypy-tests.*]
disallow_untyped_defs = False
disallow_incomplete_defs = False
check_untyped_defs = False