forked from dwradcliffe/intellicenter
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmypy.ini
More file actions
40 lines (34 loc) · 1.1 KB
/
mypy.ini
File metadata and controls
40 lines (34 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
[mypy]
python_version = 3.13
platform = linux
# Enable strict type checking (with adjustments for HA integration development)
# - disallow_any_generics = False: HA uses generics without type params
# - disallow_subclassing_any = False: Required for subclassing HA base classes
# - disallow_untyped_decorators = False: HA decorators often lack type info
strict = True
warn_return_any = True
warn_unused_configs = True
disallow_untyped_defs = True
disallow_any_generics = False
disallow_subclassing_any = False
disallow_untyped_calls = True
disallow_incomplete_defs = True
check_untyped_defs = True
disallow_untyped_decorators = False
no_implicit_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_no_return = True
warn_unreachable = True
strict_equality = True
# Allow some flexibility for third-party libraries
[mypy-homeassistant.*]
ignore_missing_imports = True
[mypy-pytest_homeassistant_custom_component.*]
ignore_missing_imports = True
[mypy-voluptuous.*]
ignore_missing_imports = True
[mypy-zeroconf.*]
ignore_missing_imports = True
[mypy-pyintellicenter.*]
ignore_missing_imports = True