-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathpyproject.toml
More file actions
46 lines (41 loc) · 1.09 KB
/
Copy pathpyproject.toml
File metadata and controls
46 lines (41 loc) · 1.09 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
[project]
name = "solis-modbus"
version = "1.0.0"
requires-python = "~=3.12.0" # keep in sync with Home Assistant
dependencies = [
"homeassistant==2025.1.4",
"pymodbus>=3.11.1", # keep in sync with custom_components/solis_modbus/manifest.json
]
[dependency-groups]
dev = [
"pytest-homeassistant-custom-component==0.13.205", # keep in sync with Home Assistant
"ruff",
]
[tool.uv]
constraint-dependencies = [
"aiohasupervisor==0.2.2b5", # pre-release required by homeassistant 2025.1.4
]
[tool.pytest.ini_options]
pythonpath = "."
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
line-length = 160
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
# TODO: enable flake8 rules
# "ANN", # flake8-annotations
# "ARG", # flake8-argument-names
# "B", # flake8-bugbear
# "C4", # flake8-comprehensions
# "TCH", # flake8-type-checking
# "PYI", # flake8-pyi
# "Q", # flake8-quotes
"UP", # pyupgrade
"N", # pep8-naming
]