forked from dwradcliffe/intellicenter
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (79 loc) · 2.06 KB
/
pyproject.toml
File metadata and controls
91 lines (79 loc) · 2.06 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
[project]
name = "intellicenter"
version = "3.6.0"
description = "Home Assistant custom integration for Pentair IntelliCenter"
readme = "README.md"
requires-python = ">=3.13.2"
dependencies = [
"homeassistant>=2025.11.3",
"pyintellicenter>=0.1.7",
]
[tool.ruff]
target-version = "py313"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by black/formatter)
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"E203", # whitespace before ':'
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # unused imports in __init__.py
[tool.ruff.lint.isort]
force-sort-within-sections = true
known-first-party = ["custom_components", "tests"]
forced-separate = ["tests"]
combine-as-imports = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.bandit]
exclude_dirs = ["tests"]
skips = ["B101"] # Use of assert detected
[tool.codespell]
ignore-words-list = "hass,timout"
skip = ".git,*.json,*.csv"
quiet-level = 2
[tool.mypy]
python_version = "3.13"
ignore_missing_imports = true
no_strict_optional = true
warn_redundant_casts = true
warn_unused_configs = true
disallow_untyped_defs = false
check_untyped_defs = true
warn_return_any = false
show_error_codes = true
[[tool.mypy.overrides]]
module = "custom_components.intellicenter.*"
ignore_errors = false
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
norecursedirs = [
".git",
".venv",
"venv",
]
[dependency-groups]
dev = [
"homeassistant>=2025.11.0",
"pytest>=8.4.2",
"pytest-asyncio>=1.2.0",
"pytest-homeassistant-custom-component>=0.13.297",
]
# Note: pyintellicenter is installed from local path during development:
# uv pip install -e ../pyintellicenter
# For production, it will be installed via manifest.json requirements