-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (65 loc) · 1.62 KB
/
pyproject.toml
File metadata and controls
74 lines (65 loc) · 1.62 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "home-assistant-plant"
version = "2025.8.0"
description = "Custom Home Assistant integration for plant monitoring"
readme = "README.md"
requires-python = ">=3.12"
license = {text = "MIT"}
authors = [
{name = "Olen", email = "olen@users.noreply.github.com"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"async-timeout>=4.0.2",
]
[project.optional-dependencies]
test = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"pytest-timeout>=2.2.0",
"pytest-homeassistant-custom-component>=0.13.0",
"syrupy>=4.6.0",
"black>=24.0.0",
"ruff>=0.14.0",
"cronsim>=2.6",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["custom_components*"]
[tool.coverage.run]
source = ["custom_components/plant"]
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]
[tool.ruff]
target-version = "py312"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by black)
]
[tool.ruff.lint.isort]
known-first-party = ["custom_components.plant"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["E402"] # Allow imports not at top of file in tests