forked from snazzybean/roommind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
51 lines (44 loc) · 1.26 KB
/
pyproject.toml
File metadata and controls
51 lines (44 loc) · 1.26 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
# --------------------------------------------------------------------------- #
# Tool configuration
# --------------------------------------------------------------------------- #
[tool.ruff]
target-version = "py312"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # bugbear
"PLC", # pylint convention
"PLE", # pylint errors
"PLW", # pylint warnings
]
ignore = [
"E501", # line too long (handled by formatter)
"PLC0415", # import not at top level (intentional lazy imports)
]
[tool.ruff.lint.isort]
known-first-party = ["custom_components.roommind"]
[tool.mypy]
python_version = "3.12"
check_untyped_defs = true
disallow_untyped_defs = true
ignore_missing_imports = true
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = "homeassistant.*"
follow_imports = "skip"
[tool.coverage.run]
relative_files = true
[tool.mutmut]
paths_to_mutate = ["custom_components/roommind/"]
tests_dir = ["tests/"]
do_not_mutate = [
"**/const.py", # constants, no logic
"**/config_flow.py", # HA boilerplate
"**/__init__.py", # setup/registration, tested via integration
]