-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (59 loc) · 1.64 KB
/
pyproject.toml
File metadata and controls
69 lines (59 loc) · 1.64 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
63
64
65
66
67
68
69
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "home-assistant-yarbo"
version = "0.0.0"
description = "Home Assistant HACS integration for Yarbo robot mowers"
requires-python = ">=3.12"
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"ANN", # flake8-annotations
"RUF", # Ruff-specific rules
]
ignore = [
"ANN401", # Dynamically typed expressions (Any) disallowed
]
[tool.ruff.lint.per-file-ignores]
# conftest.py must manipulate sys.modules/os.environ before HA imports to prevent
# transitive dependencies (aiodhcpwatcher, aiodiscover, …) from being pulled in.
"tests/conftest.py" = ["E402"]
[tool.ruff.lint.isort]
known-first-party = ["custom_components.yarbo"]
[tool.mypy]
python_version = "3.13"
strict = true
ignore_missing_imports = true
allow_redefinition = true
warn_return_any = false
# homeassistant stubs aren't always complete
[[tool.mypy.overrides]]
module = ["homeassistant.*", "yarbo.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["custom_components.yarbo.*"]
disable_error_code = ["return-value", "attr-defined", "arg-type"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
timeout_func_only = true
[tool.coverage.run]
source = ["custom_components/yarbo"]
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"# TODO:",
]