-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (100 loc) · 3.15 KB
/
pyproject.toml
File metadata and controls
109 lines (100 loc) · 3.15 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[project]
name = "ha-asusrouter"
version = "1.0.0.dev0"
license = "Apache-2.0"
requires-python = ">=3.13.2"
readme = "README.md"
description = "A custom Home Assistant integration from the AsusRouter project"
authors = [
{ name="Yevhenii Vaskivskyi", email="[email protected]" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"asusrouter @ git+https://github.com/Vaskivskyi/asusrouter.git@dev",
"homeassistant >=2026.1.0",
]
[project.urls]
"Homepage" = "https://asusrouter.vaskivskyi.com/"
"Source Code" = "https://github.com/Vaskivskyi/ha-asusrouter"
"Bug Reports" = "https://github.com/Vaskivskyi/ha-asusrouter/issues"
[dependency-groups]
dev = [
"mypy>=1.19.1",
"pydantic>=2.12.5",
"ruff>=0.14.4",
"pre-commit>=4.5.1",
]
test = [
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
]
[tool.pytest.ini_options]
testpaths = [
"tests",
]
filterwarnings = [
# ignore that specific HA DeprecationWarning coming from http component
"ignore:Inheritance class HomeAssistantApplication from web.Application is discouraged:DeprecationWarning:homeassistant\\.components\\.http",
]
[tool.ruff]
line-length = 79
required-version = ">=0.12.8"
src = ["asusrouter"]
target-version = "py313"
[tool.ruff.lint]
select = [
"A001", # Variable {name} is shadowing a Python builtin
"ASYNC", # flake8-async
"BLE", # flake8-blind-except
"C", # complexity
"D", # docstrings
"E", # pycodestyle / error
"F", # pyflakes
"I", # isort
"ICN001", # {name} should be imported as {asname}
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8-naming
"PERF", # Perflint
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-pathlib
"PYI", # flake8-pyi
"RET", # flake8-return
"RSE", # flake8-raise
"S", # flake8-bandit
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"W", # pycodestyle / warning
]
ignore = [
"D202", # No blank lines allowed after function docstring (found {num_lines})
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
known-third-party = ["homeassistant", "asusrouter"]
known-first-party = ["custom_components"]
combine-as-imports = true
split-on-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # Use of `assert` detected
"S105", # Possible hardcoded password assigned to: "{}"
"S106", # Possible hardcoded password assigned to argument: "{}"
"PLR0913", # Too many arguments in function definition ({c_args} > {max_args})
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"