-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathpyproject.toml
More file actions
59 lines (51 loc) · 1.61 KB
/
Copy pathpyproject.toml
File metadata and controls
59 lines (51 loc) · 1.61 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
[project]
name = "ha-yasno-outages"
version = "0.0.0"
description = "Home Assistant custom component: Yasno Outages"
readme = "readme.md"
requires-python = ">=3.14.2"
authors = [{ name = "Denys Dovhan", email = "denysdovhan@gmail.com" }]
dependencies = ["homeassistant==2026.7.4", "python-dateutil>=2.8.2"]
[dependency-groups]
dev = [
"pre-commit>=4.6.1",
"pytest>=9.1.1",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"ruff==0.16.0",
]
[tool.ruff]
target-version = "py314"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"D203", # no-blank-line-before-class (incompatible with formatter)
"D212", # multi-line-summary-first-line (incompatible with formatter)
"COM812", # incompatible with formatter
"ISC001", # incompatible with formatter
"TD002", # todo require author tag
"TD003", # todo should have a link to an issue
"FIX002", # require todo to be resolved
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # Use of assert detected
"PLR2004", # Magic value used in comparison
"ANN", # Missing type annotations
"SLF001", # Private member access (needed for testing)
"D", # Docstring requirements
"DTZ001", # Datetime without timezone (tests use naive datetimes)
"ERA001", # Commented-out code (test comments are explanatory)
]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.ruff.lint.mccabe]
max-complexity = 25
[tool.pytest.ini_options]
minversion = "8.0"
addopts = "-ra -q"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"