-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (117 loc) · 3.15 KB
/
pyproject.toml
File metadata and controls
132 lines (117 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pyintellicenter"
version = "0.1.15"
description = "Python library for Pentair IntelliCenter pool control systems"
readme = "README.md"
license = "MIT"
requires-python = ">=3.13"
authors = [
{ name = "joyfulhouse", email = "joyfulhouse@users.noreply.github.com" }
]
keywords = [
"pentair",
"intellicenter",
"pool",
"automation",
"home-assistant",
"asyncio",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Topic :: Home Automation",
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: AsyncIO",
"Typing :: Typed",
]
dependencies = [
"orjson>=3.10.0",
"websockets>=15.0",
"zeroconf>=0.136.2",
]
[project.optional-dependencies]
dev = [
"pytest>=9.0.1",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"ruff>=0.14.6",
"mypy>=1.18.2",
]
[project.urls]
Homepage = "https://github.com/joyfulhouse/pyintellicenter"
Documentation = "https://github.com/joyfulhouse/pyintellicenter#readme"
Repository = "https://github.com/joyfulhouse/pyintellicenter.git"
Issues = "https://github.com/joyfulhouse/pyintellicenter/issues"
[tool.hatch.build.targets.sdist]
include = [
"/src",
]
[tool.hatch.build.targets.wheel]
packages = ["src/pyintellicenter"]
[tool.ruff]
target-version = "py313"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # bugbear (common bugs and design issues)
"C4", # comprehensions
"UP", # pyupgrade (modern Python syntax)
"ARG", # unused arguments
"SIM", # simplify
"TCH", # type-checking imports
"BLE", # blind except
"LOG", # logging best practices
"G", # logging format (lazy logging)
"ASYNC", # async best practices
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ARG"] # Unused arguments OK in tests (fixtures)
"src/pyintellicenter/controller.py" = ["ARG002"] # Callback signatures have required unused args
[tool.ruff.lint.isort]
known-first-party = ["pyintellicenter"]
[tool.mypy]
python_version = "3.13"
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
strict_optional = true
no_implicit_optional = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
addopts = "-v --tb=short"
[tool.coverage.run]
source = ["src/pyintellicenter"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
[tool.uv.sources]
pyintellicenter = { workspace = true }
[dependency-groups]
dev = [
"pyintellicenter",
"pytest>=9.0.1",
"pytest-asyncio>=1.3.0",
"python-dotenv>=1.2.1",
]