11[build-system ]
2- requires = [" setuptools~=69.0 " , " wheel~=0.42 .0" ]
2+ requires = [" setuptools~=72.1 " , " wheel~=0.44 .0" ]
33build-backend = " setuptools.build_meta"
44
55[project ]
@@ -22,11 +22,13 @@ authors = [
2222 { name = " Plugwise device owners" }
2323]
2424maintainers = [
25+ { name = " arnoutd_77" },
2526 { name = " bouwew" },
2627 { name = " brefra" },
27- { name = " CoMPaTech" }
28+ { name = " CoMPaTech" },
29+ { name = " dirixmjm" }
2830]
29- requires-python = " >=3.11 .0"
31+ requires-python = " >=3.10 .0"
3032dependencies = [
3133 " pyserial-asyncio-fast" ,
3234 " aiofiles" ,
@@ -46,9 +48,8 @@ include-package-data = true
4648include = [" plugwise_usb*" ]
4749
4850[tool .black ]
49- target-version = [" py311 " ]
51+ target-version = [" py312 " ]
5052exclude = ' generated'
51- line-length = 79
5253
5354[tool .isort ]
5455# https://github.com/PyCQA/isort/wiki/isort-Settings
@@ -139,7 +140,6 @@ disable = [
139140 " missing-function-docstring" ,
140141 " missing-module-docstring" ,
141142 " too-many-nested-blocks" ,
142- " broad-exception-caught"
143143]
144144# for now (20201031) added the below while we are codemerging/-improving
145145# missing-class-docstring
@@ -184,9 +184,9 @@ norecursedirs = [
184184]
185185
186186[tool .mypy ]
187- python_version = " 3.11 "
187+ python_version = " 3.12 "
188188show_error_codes = true
189- follow_imports = " skip "
189+ follow_imports = " silent "
190190ignore_missing_imports = true
191191strict_equality = true
192192warn_incomplete_stub = true
@@ -204,9 +204,7 @@ no_implicit_optional = true
204204strict = true
205205warn_return_any = true
206206warn_unreachable = true
207- exclude = [
208- " tests/test_usb.py"
209- ]
207+ exclude = []
210208
211209[tool .coverage .run ]
212210source = [ " plugwise_usb" ]
@@ -215,16 +213,16 @@ omit= [
215213 " setup.py" ,
216214]
217215
218-
219216[tool .ruff ]
220217target-version = " py312"
221218
222- select = [
219+ lint. select = [
223220 " B002" , # Python does not support the unary prefix increment
224221 " B007" , # Loop control variable {name} not used within loop body
225222 " B014" , # Exception handler with duplicate exception
226223 " B023" , # Function definition does not bind loop variable {name}
227224 " B026" , # Star-arg unpacking after a keyword argument is strongly discouraged
225+ " B904" , # Use raise from err or None to specify exception cause
228226 " C" , # complexity
229227 " COM818" , # Trailing comma on bare tuple prohibited
230228 " D" , # docstrings
@@ -239,7 +237,7 @@ select = [
239237 " N804" , # First argument of a class method should be named cls
240238 " N805" , # First argument of a method should be named self
241239 " N815" , # Variable {name} in class scope should not be mixedCase
242- " PGH001" , # No builtin eval() allowed
240+ # "PGH001", # No builtin eval() allowed remapped to S307
243241 " PGH004" , # Use specific rule codes when using noqa
244242 " PL" , # https://github.com/astral-sh/ruff/issues/7491#issuecomment-1730008111
245243 " PLC0414" , # Useless import alias. Import alias does not rename original package.
@@ -279,13 +277,13 @@ select = [
279277 " T20" , # flake8-print
280278 " TID251" , # Banned imports
281279 " TRY004" , # Prefer TypeError exception for invalid type
282- " TRY200" , # Use raise from to specify exception cause
280+ # "TRY200", # Use raise from to specify exception cause
283281 " TRY302" , # Remove exception handler; error is immediately re-raised
284282 " UP" , # pyupgrade
285283 " W" , # pycodestyle
286284]
287285
288- ignore = [
286+ lint. ignore = [
289287 " D202" , # No blank lines allowed after function docstring
290288 " D203" , # 1 blank line required before class docstring
291289 " D213" , # Multi-line docstring summary should start at the second line
@@ -309,24 +307,24 @@ ignore = [
309307
310308exclude = []
311309
312- [tool .ruff .flake8-import-conventions .extend-aliases ]
310+ [tool .ruff .lint . flake8-import-conventions .extend-aliases ]
313311voluptuous = " vol"
314312"homeassistant.helpers.area_registry" = " ar"
315313"homeassistant.helpers.config_validation" = " cv"
316314"homeassistant.helpers.device_registry" = " dr"
317315"homeassistant.helpers.entity_registry" = " er"
318316"homeassistant.helpers.issue_registry" = " ir"
319317
320- [tool .ruff .flake8-pytest-style ]
318+ [tool .ruff .lint . flake8-pytest-style ]
321319fixture-parentheses = false
322320
323- [tool .ruff .mccabe ]
321+ [tool .ruff .lint . mccabe ]
324322max-complexity = 25
325323
326- [tool .ruff .flake8-tidy-imports .banned-api ]
324+ [tool .ruff .lint . flake8-tidy-imports .banned-api ]
327325"pytz".msg = " use zoneinfo instead"
328326
329- [tool .ruff .isort ]
327+ [tool .ruff .lint . isort ]
330328force-sort-within-sections = true
331329section-order = [" future" , " standard-library" , " first-party" , " third-party" , " local-folder" ]
332330known-third-party = [
0 commit comments