-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (58 loc) · 1.54 KB
/
pyproject.toml
File metadata and controls
69 lines (58 loc) · 1.54 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
[project]
name = "homeassistant_xmltv-epg"
version = "0.0.0"
dependencies = [
"homeassistant==2026.3.3",
"pytest-homeassistant-custom-component>=0.13.319",
"colorlog>=6.10.1",
"ruff>=0.15.12",
"pytest>=9.0.0",
"anyio>=4.13.0",
"pyright>=1.1.409",
"pydantic>=2.12.2",
"pydantic-xml>=2.19.0"
]
[tool.setuptools.packages.find]
where = ["custom_components"]
[build-system]
requires = ["setuptools>=82.0.1", "wheel"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
testpaths = ["test"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
target-version = "py314"
exclude = [
"typings" # Exclude files auto-generated by pyright
]
[tool.ruff.lint]
select = [
"E",
"F",
"ANN",
"D",
"COM",
"S",
]
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
"ANN201", "ANN202", "ANN204", "ANN205", # Missing return type annotations
"E501", # line too long
]
[tool.ruff.lint.per-file-ignores]
"test/*" = [
"S101", # Allow assert statements
"ANN001", # Allow untyped function parameters (e.g. fixtures)
"S105", "S106", # allow hardcoded passwords (dummy used in tests!)
]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.ruff.lint.mccabe]
max-complexity = 25