@@ -220,12 +220,13 @@ omit= [
220220[tool .ruff ]
221221target-version = " py312"
222222
223- select = [
223+ lint. select = [
224224 " B002" , # Python does not support the unary prefix increment
225225 " B007" , # Loop control variable {name} not used within loop body
226226 " B014" , # Exception handler with duplicate exception
227227 " B023" , # Function definition does not bind loop variable {name}
228228 " B026" , # Star-arg unpacking after a keyword argument is strongly discouraged
229+ " B904" , # Use raise from err or None to specify exception cause
229230 " C" , # complexity
230231 " COM818" , # Trailing comma on bare tuple prohibited
231232 " D" , # docstrings
@@ -240,7 +241,7 @@ select = [
240241 " N804" , # First argument of a class method should be named cls
241242 " N805" , # First argument of a method should be named self
242243 " N815" , # Variable {name} in class scope should not be mixedCase
243- " PGH001" , # No builtin eval() allowed
244+ # "PGH001", # PGH001 has been remapped to S307
244245 " PGH004" , # Use specific rule codes when using noqa
245246 " PL" , # https://github.com/astral-sh/ruff/issues/7491#issuecomment-1730008111
246247 " PLC0414" , # Useless import alias. Import alias does not rename original package.
@@ -280,13 +281,13 @@ select = [
280281 " T20" , # flake8-print
281282 " TID251" , # Banned imports
282283 " TRY004" , # Prefer TypeError exception for invalid type
283- " TRY200" , # Use raise from to specify exception cause
284+ # "TRY200", # TRY200 has been remapped to B904
284285 " TRY302" , # Remove exception handler; error is immediately re-raised
285286 " UP" , # pyupgrade
286287 " W" , # pycodestyle
287288]
288289
289- ignore = [
290+ lint. ignore = [
290291 " D202" , # No blank lines allowed after function docstring
291292 " D203" , # 1 blank line required before class docstring
292293 " D213" , # Multi-line docstring summary should start at the second line
@@ -310,24 +311,24 @@ ignore = [
310311
311312exclude = []
312313
313- [tool .ruff .flake8-import-conventions .extend-aliases ]
314+ [tool .ruff .lint . flake8-import-conventions .extend-aliases ]
314315voluptuous = " vol"
315316"homeassistant.helpers.area_registry" = " ar"
316317"homeassistant.helpers.config_validation" = " cv"
317318"homeassistant.helpers.device_registry" = " dr"
318319"homeassistant.helpers.entity_registry" = " er"
319320"homeassistant.helpers.issue_registry" = " ir"
320321
321- [tool .ruff .flake8-pytest-style ]
322+ [tool .ruff .lint . flake8-pytest-style ]
322323fixture-parentheses = false
323324
324- [tool .ruff .mccabe ]
325+ [tool .ruff .lint . mccabe ]
325326max-complexity = 25
326327
327- [tool .ruff .flake8-tidy-imports .banned-api ]
328+ [tool .ruff .lint . flake8-tidy-imports .banned-api ]
328329"pytz".msg = " use zoneinfo instead"
329330
330- [tool .ruff .isort ]
331+ [tool .ruff .lint . isort ]
331332force-sort-within-sections = true
332333section-order = [" future" , " standard-library" , " first-party" , " third-party" , " local-folder" ]
333334known-third-party = [
0 commit comments