Skip to content

Commit 3d424db

Browse files
committed
Align pyproject with python-plugwise
1 parent 38408fe commit 3d424db

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

pyproject.toml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ dependencies = [
4949
platforms = ["any"]
5050
include-package-data = true
5151

52+
[tool.setuptools.package-data]
53+
"plugwise" = ["py.typed"]
54+
5255
[tool.setuptools.packages.find]
53-
include = ["plugwise_usb*"]
56+
include = ["plugwise*"]
5457

5558
[tool.black]
5659
target-version = ["py312"]
@@ -62,7 +65,7 @@ profile = "black"
6265
# will group `import x` and `from x import` of the same module.
6366
force_sort_within_sections = true
6467
known_first_party = [
65-
"plugwise_usb",
68+
"plugwise",
6669
"homeassistant",
6770
"tests",
6871
]
@@ -118,33 +121,34 @@ good-names = [
118121
# too-many-ancestors - it's too strict.
119122
# wrong-import-order - isort guards this
120123
disable = [
121-
"format",
122124
"abstract-method",
123125
"consider-using-f-string",
124126
"cyclic-import",
125127
"duplicate-code",
126128
"fixme",
129+
"format",
127130
"inconsistent-return-statements",
128131
"locally-disabled",
132+
"missing-class-docstring",
133+
"missing-function-docstring",
134+
"missing-module-docstring",
129135
"not-context-manager",
136+
"raise-missing-from",
130137
"too-few-public-methods",
131138
"too-many-ancestors",
132139
"too-many-arguments",
140+
"too-many-boolean-expressions",
133141
"too-many-branches",
134142
"too-many-instance-attributes",
135143
"too-many-lines",
136144
"too-many-locals",
145+
"too-many-positional-arguments",
137146
"too-many-public-methods",
138147
"too-many-return-statements",
139148
"too-many-statements",
140-
"too-many-boolean-expressions",
149+
"too-many-nested-blocks",
141150
"unused-argument",
142151
"wrong-import-order",
143-
"raise-missing-from",
144-
"missing-class-docstring",
145-
"missing-function-docstring",
146-
"missing-module-docstring",
147-
"too-many-nested-blocks",
148152
]
149153
# for now (20201031) added the below while we are codemerging/-improving
150154
# missing-class-docstring
@@ -212,7 +216,7 @@ warn_unreachable = true
212216
exclude = []
213217

214218
[tool.coverage.run]
215-
source = [ "plugwise_usb" ]
219+
source = [ "plugwise" ]
216220
omit= [
217221
"*/venv/*",
218222
"setup.py",
@@ -242,7 +246,7 @@ lint.select = [
242246
"N804", # First argument of a class method should be named cls
243247
"N805", # First argument of a method should be named self
244248
"N815", # Variable {name} in class scope should not be mixedCase
245-
# "PGH001", # No builtin eval() allowed remapped to S307
249+
# "PGH001", # PGH001 has been remapped to S307
246250
"PGH004", # Use specific rule codes when using noqa
247251
"PL", # https://github.com/astral-sh/ruff/issues/7491#issuecomment-1730008111
248252
"PLC0414", # Useless import alias. Import alias does not rename original package.
@@ -282,7 +286,7 @@ lint.select = [
282286
"T20", # flake8-print
283287
"TID251", # Banned imports
284288
"TRY004", # Prefer TypeError exception for invalid type
285-
# "TRY200", # Use raise from to specify exception cause
289+
# "TRY200", # TRY200 has been remapped to B904
286290
"TRY302", # Remove exception handler; error is immediately re-raised
287291
"UP", # pyupgrade
288292
"W", # pycodestyle
@@ -336,7 +340,7 @@ known-third-party = [
336340
"tests",
337341
]
338342
known-first-party = [
339-
"plugwise_usb",
343+
"plugwise",
340344
"voluptuous",
341345
"pytest",
342346
]
@@ -345,4 +349,3 @@ forced-separate = [
345349
]
346350
combine-as-imports = true
347351
split-on-trailing-comma = false
348-

0 commit comments

Comments
 (0)