forked from LF2b2w/Uhome-HA
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
34 lines (32 loc) · 983 Bytes
/
Copy pathpyproject.toml
File metadata and controls
34 lines (32 loc) · 983 Bytes
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
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
addopts = "-q"
filterwarnings = [
# Silence pytest-homeassistant-custom-component / HA noise without hiding
# warnings against our own code.
"ignore::DeprecationWarning:pytest_homeassistant_custom_component",
"ignore::DeprecationWarning:homeassistant",
"ignore::PendingDeprecationWarning:pytest_homeassistant_custom_component",
"ignore::PendingDeprecationWarning:homeassistant",
]
[tool.coverage.run]
branch = true
source = ["custom_components/u_tec"]
[tool.coverage.report]
show_missing = true
skip_empty = true
fail_under = 85
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"def __repr__",
"def __str__",
"@(abc\\.)?abstractmethod",
# Defensive log-only catch-alls
"except Exception: # noqa: BLE001",
"logger\\.exception",
]