-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
74 lines (63 loc) · 1.59 KB
/
pyproject.toml
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
[project]
name = "homeassistant-smarter"
version = "0.3.1"
description = "Default template for PDM package"
authors = [{ name = "Kirill Birger", email = "[email protected]" }]
dependencies = ["smarter-client>=0.2.4", "homeassistant>=2024.9.2"]
requires-python = "~=3.12.4"
readme = "README.md"
license = { text = "MIT" }
[project.optional-dependencies]
dev = [
"mypy>=1.11.2",
"pytest-homeassistant-custom-component>=0.13.163",
"pytest>=8.3.1",
"pytest-cov>=5.0.0",
"pytest-asyncio>=0.23.8",
"pre-commit>=3.8.0",
"ruff>=0.6.5",
]
testing = [
"pytest-homeassistant-custom-component>=0.13.163",
"pytest>=8.3.1",
"pytest-cov>=5.0.0",
"pytest-asyncio>=0.23.8",
]
linting = ["pre-commit>=3.8.0", "ruff>=0.6.5"]
[tool.pdm]
distribution = false
[tool.pdm.scripts]
format = "ruff format"
lint = "ruff check"
test = "pytest -v --doctest-modules --junitxml=coverage/test-results.xml --cov --cov-report=xml --cov-report=html"
test-ci = "pytest --timeout=9 --durations=10 -n auto -p no:sugar tests"
[tool.pylint]
disable = ['no-name-in-module']
[tool.pytest.ini_options]
asyncio_mode = "auto"
pythonpath = "."
addopts = ["--allow-unix-socket"]
[tool.ruff]
target-version = "py312"
src = ["custom_components"]
exclude = [
".venv",
".git",
".tox",
"docs",
"venv",
"bin",
"lib",
"deps",
"build",
]
line-length = 88
[tool.ruff.format]
quote-style = "double"
[tool.ruff.lint]
select = ["D", "E", "F", "W", "I", "UP", "R"]
ignore = ["D203", "D213"]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true