forked from dext0r/yandex_smart_home
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
166 lines (133 loc) · 3.33 KB
/
pyproject.toml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
[tool.ruff.per-file-ignores]
"tests/test_schema.py" = ["F403", "F405"]
[tool.isort]
profile = "black"
line_length = 120
force_sort_within_sections = true
combine_as_imports = true
known_first_party = [
"custom_components.yandex_smart_home",
"tests",
]
skip_glob = [".venv*/*"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = "-p no:aiohttp"
[tool.coverage.report]
exclude_also = [
"raise NotImplementedError",
"@abstractmethod",
"if TYPE_CHECKING:"
]
omit = [
"tests/*"
]
[tool.mypy]
python_version = 3.11
plugins = ["pydantic.mypy"]
follow_imports_for_stubs = true
local_partial_types = true
strict_equality = true
no_implicit_optional = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
enable_error_code = ["ignore-without-code", "redundant-self", "truthy-iterable"]
extra_checks = false
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_calls = false
[[tool.mypy.overrides]]
module = "tests"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.conftest"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_capability"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_capability_color"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_capability_custom"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_capability_mode"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_capability_onoff"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_capability_range"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_capability_toggle"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_capability_video"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_cloud"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_cloud_stream"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_config_validation"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_device"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_diagnostics"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_entry_data"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_handlers"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_helpers"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_init"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_notifier"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_property"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_property_custom"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_property_event"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_property_float"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tests.test_schema"
ignore_errors = true