-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
164 lines (139 loc) · 4.09 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
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[tool.poetry]
name = "pybonaparte"
version = "0.3.1"
description = "Library to control Napoleon eFIRE enabled fireplaces"
authors = ["Felix Kaechele <felix@kaechele.ca>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/kaechele/bonaparte"
documentation = "https://bonaparte.readthedocs.io"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Home Automation",
"Topic :: Software Development :: Libraries",
]
packages = [{ include = "bonaparte", from = "src" }]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/kaechele/bonaparte/issues"
"Changelog" = "https://github.com/kaechele/bonaparte/blob/main/CHANGELOG.md"
[tool.poetry.dependencies]
python = ">=3.10,<3.14"
bleak = ">=0.21.0"
bleak-retry-connector = "^3.6.0"
aenum = "^3.1.15"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.3"
pytest-cov = "^6.0.0"
pylint = "^3.3.1"
pre-commit = "^4.0.1"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
myst-parser = ">=0.16"
sphinx = ">=4.0"
blockdiag = { git = "https://github.com/yuzutech/blockdiag.git", tag = "v3.3.0" }
sphinxcontrib-nwdiag = "^2.0.0"
reportlab = "^4.0.0"
furo = "^2024.0.0"
[tool.semantic_release]
logging_use_named_masks = true
branch = "main"
version_toml = ["pyproject.toml:tool.poetry.version"]
version_variables = [
"src/bonaparte/__init__.py:__version__",
"docs/conf.py:release",
]
build_command = "pip install poetry && poetry build"
[tool.pytest.ini_options]
addopts = "-v -Wdefault --cov=bonaparte --cov-report=term-missing:skip-covered"
pythonpath = ["src"]
[tool.coverage.run]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@overload",
"if TYPE_CHECKING",
"raise NotImplementedError",
'if __name__ == "__main__":',
]
[tool.mypy]
python_version = "3.12"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
mypy_path = "src/"
no_implicit_optional = true
show_error_codes = true
warn_unreachable = true
warn_unused_ignores = true
exclude = ['docs/.*', 'setup.py']
[[tool.mypy.overrides]]
module = "tests.*"
allow_untyped_defs = true
[[tool.mypy.overrides]]
module = "docs.*"
ignore_errors = true
[tool.pylint.MAIN]
py-version = "3.12"
ignore = ["tests"]
load-plugins = ["pylint.extensions.code_style", "pylint.extensions.typing"]
[tool.pylint."MESSAGES CONTROL"]
disable = [
"format",
"not-context-manager",
"too-few-public-methods",
"too-many-ancestors",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-public-methods",
"too-many-return-statements",
"too-many-statements",
"too-many-boolean-expressions",
"unused-argument",
"wrong-import-order",
]
enable = ["useless-suppression", "use-symbolic-message-instead"]
[tool.pylint.FORMAT]
expected-line-ending-format = "LF"
[tool.ruff]
target-version = "py312"
exclude = ["docs", "setup.py"]
# Same as Black.
line-length = 88
[tool.ruff.lint]
# Let's tone this down once we release the first version
select = ["ALL"]
ignore = ["COM", "D203", "D213", "I001", "ISC001"]
unfixable = ["ERA"]
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
voluptuous = "vol"
"homeassistant.helpers.area_registry" = "ar"
"homeassistant.helpers.config_validation" = "cv"
"homeassistant.helpers.device_registry" = "dr"
"homeassistant.helpers.entity_registry" = "er"
"homeassistant.helpers.issue_registry" = "ir"
"homeassistant.util.dt" = "dt_util"
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"async_timeout".msg = "use asyncio.timeout instead"
"pytz".msg = "use zoneinfo instead"
[tool.ruff.lint.isort]
force-sort-within-sections = true
combine-as-imports = true
split-on-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]
[tool.ruff.lint.mccabe]
max-complexity = 25
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"