11[build-system ]
2- requires = [" setuptools~=72 .1" , " wheel~=0.44 .0" ]
2+ requires = [" setuptools~=75 .1" , " wheel~=0.45 .0" ]
33build-backend = " setuptools.build_meta"
44
55[project ]
@@ -44,8 +44,11 @@ dependencies = [
4444platforms = [" any" ]
4545include-package-data = true
4646
47+ [tool .setuptools .package-data ]
48+ "plugwise" = [" py.typed" ]
49+
4750[tool .setuptools .packages .find ]
48- include = [" plugwise_usb *" ]
51+ include = [" plugwise *" ]
4952
5053[tool .black ]
5154target-version = [" py312" ]
@@ -57,7 +60,7 @@ profile = "black"
5760# will group `import x` and `from x import` of the same module.
5861force_sort_within_sections = true
5962known_first_party = [
60- " plugwise_usb " ,
63+ " plugwise " ,
6164 " homeassistant" ,
6265 " tests" ,
6366]
@@ -113,18 +116,23 @@ good-names = [
113116# too-many-ancestors - it's too strict.
114117# wrong-import-order - isort guards this
115118disable = [
116- " format" ,
117119 " abstract-method" ,
118120 " consider-using-f-string" ,
119121 " cyclic-import" ,
120122 " duplicate-code" ,
121123 " fixme" ,
124+ " format" ,
122125 " inconsistent-return-statements" ,
123126 " locally-disabled" ,
127+ " missing-class-docstring" ,
128+ " missing-function-docstring" ,
129+ " missing-module-docstring" ,
124130 " not-context-manager" ,
131+ " raise-missing-from" ,
125132 " too-few-public-methods" ,
126133 " too-many-ancestors" ,
127134 " too-many-arguments" ,
135+ " too-many-boolean-expressions" ,
128136 " too-many-branches" ,
129137 " too-many-instance-attributes" ,
130138 " too-many-lines" ,
@@ -133,14 +141,9 @@ disable = [
133141 " too-many-public-methods" ,
134142 " too-many-return-statements" ,
135143 " too-many-statements" ,
136- " too-many-boolean-expressions " ,
144+ " too-many-nested-blocks " ,
137145 " unused-argument" ,
138146 " wrong-import-order" ,
139- " raise-missing-from" ,
140- " missing-class-docstring" ,
141- " missing-function-docstring" ,
142- " missing-module-docstring" ,
143- " too-many-nested-blocks" ,
144147]
145148# for now (20201031) added the below while we are codemerging/-improving
146149# too-many-positional-arguments
@@ -209,7 +212,7 @@ warn_unreachable = true
209212exclude = []
210213
211214[tool .coverage .run ]
212- source = [ " plugwise_usb " ]
215+ source = [ " plugwise " ]
213216omit = [
214217 " */venv/*" ,
215218 " setup.py" ,
@@ -239,7 +242,7 @@ lint.select = [
239242 " N804" , # First argument of a class method should be named cls
240243 " N805" , # First argument of a method should be named self
241244 " N815" , # Variable {name} in class scope should not be mixedCase
242- # "PGH001", # No builtin eval() allowed remapped to S307
245+ # "PGH001", # PGH001 has been remapped to S307
243246 " PGH004" , # Use specific rule codes when using noqa
244247 " PL" , # https://github.com/astral-sh/ruff/issues/7491#issuecomment-1730008111
245248 " PLC0414" , # Useless import alias. Import alias does not rename original package.
@@ -279,7 +282,7 @@ lint.select = [
279282 " T20" , # flake8-print
280283 " TID251" , # Banned imports
281284 " TRY004" , # Prefer TypeError exception for invalid type
282- # "TRY200", # Use raise from to specify exception cause
285+ # "TRY200", # TRY200 has been remapped to B904
283286 " TRY302" , # Remove exception handler; error is immediately re-raised
284287 " UP" , # pyupgrade
285288 " W" , # pycodestyle
0 commit comments