-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
205 lines (173 loc) · 5.29 KB
/
pyproject.toml
File metadata and controls
205 lines (173 loc) · 5.29 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
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
[project]
name = "tadoasync"
version = "0.2.2"
description = "Asynchronous Python client for controlling Tado devices."
authors = [{ name = "Erwin Douna", email = "e.douna@gmail.com" }]
requires-python = ">=3.12,<4"
readme = "README.md"
license = "MIT"
maintainers = [{ name = "Erwin Douna", email = "e.douna@gmail.com" }]
keywords = [
"tado",
"homeassistant",
"api",
"async",
"client",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"aiohttp>=3.0.0",
"mashumaro>=3.20",
"orjson>=3.10.12",
"yarl>=1.6.0",
"aioresponses>=0.7.7,<0.8",
"pyjwt>=2.11.0",
]
[project.urls]
Homepage = "https://github.com/erwindouna/python-tado"
Repository = "https://github.com/erwindouna/python-tado"
Documentation = "https://github.com/erwindouna/python-tado"
"Bug Tracker" = "https://github.com/erwindouna/python-tado/issues"
Changelog = "https://github.com/erwindouna/python-tado/releases"
[dependency-groups]
dev = [
"aresponses>=3.0.0",
"codespell>=2.2.6",
"covdefaults>=2.3.0",
"coverage[toml]>=7.4.3",
"mypy>=1.9.0",
"prek>=0.3.4",
"pylint>=3.0.3",
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"pytest-cov>=4.1.0",
"ruff>=0.15.5",
"safety>=3.0.1",
"yamllint>=1.33.0",
"syrupy>=4.6.1",
"deptry>=0.24.0",
]
[tool.hatch.build.targets.sdist]
include = ["src/tadoasync"]
[tool.hatch.build.targets.wheel]
include = ["src/tadoasync"]
[tool.hatch.build.targets.wheel.sources]
"src/tadoasync" = "tadoasync"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.coverage.report]
show_missing = true
fail_under = 95
[tool.coverage.run]
plugins = ["covdefaults"]
source = ["tadoasync"]
[tool.mypy]
# Specify the target platform details in config, so your developers are
# free to run mypy on Windows, Linux, or macOS and get consistent
# results.
platform = "linux"
python_version = "3.14"
# show error messages from unrelated files
follow_imports = "normal"
# suppress errors about unsatisfied imports
ignore_missing_imports = true
# be strict
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
strict_optional = true
warn_incomplete_stub = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
# Per-module overrides for libraries without type stubs
[[tool.mypy.overrides]]
module = "mashumaro.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "syrupy"
ignore_errors = true
[[tool.mypy.overrides]]
module = "aresponses"
ignore_errors = true
[[tool.mypy.overrides]]
module = "tadoasync.models"
disallow_any_generics = false
disallow_subclassing_any = false
[[tool.mypy.overrides]]
module = "tadoasync.tadoasync"
disallow_any_generics = false
warn_return_any = false
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_decorators = false
ignore_errors = true
[tool.pylint.MASTER]
ignore = ["tests"]
[tool.pylint.BASIC]
good-names = ["_", "ex", "fp", "i", "id", "j", "k", "on", "Run", "T"]
[tool.pylint.DESIGN]
max-attributes = 8
[tool.pylint."MESSAGES CONTROL"]
disable = ["duplicate-code", "format", "unsubscriptable-object", "no-member", "too-many-arguments", "protected-access", "invalid-name", "wrong-import-order", "too-many-statements", "too-many-public-methods", "too-many-instance-attributes", "redefined-builtin", "import-error"]
[tool.pylint.SIMILARITIES]
ignore-imports = true
[tool.pylint.FORMAT]
max-line-length = 88
[tool.pytest.ini_options]
addopts = "--cov"
asyncio_mode = "auto"
[tool.ruff]
[tool.ruff.lint]
ignore = [
"ANN401", # Opinionated warning on disallowing dynamically typed expressions
"D203", # Conflicts with other rules
"ARG002", # Conflicts with other rules
"D213", # Conflicts with other rules
"D417", # False positives in some occasions
"PLR2004", # Just annoying, not really useful
"SLOT000", # Has a bug with enums: https://github.com/astral-sh/ruff/issues/5748
"TRY003", # Avoid specifying long messages outside the exception class
"EM101", # Exception must not use a string literal, assign to variable first
"EM102", # Exception must not use an f-string literal, assign to variable first
"PLR0913", # Too many arguments in function definition
"N815", # Scope should not be mixedCase
"PLR0912", # Too many branches
"PLR0915", # Too many statements
"C901", # Too complex
# Conflicts with the Ruff formatter
"COM812",
"ISC001",
]
select = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"scripts/*" = ["INP001"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.isort]
known-first-party = ["tado"]
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = [
"mashumaro.mixins.orjson.DataClassORJSONMixin",
]
[tool.ruff.lint.mccabe]
max-complexity = 25