mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Update ruff to v0.0.292 (#101290)
This commit is contained in:
parent
d0700db7eb
commit
2f0ba154b9
@ -1,6 +1,6 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.0.289
|
rev: v0.0.292
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args:
|
args:
|
||||||
|
@ -302,7 +302,7 @@ class UniFiController:
|
|||||||
self.poe_command_queue.clear()
|
self.poe_command_queue.clear()
|
||||||
for device_id, device_commands in queue.items():
|
for device_id, device_commands in queue.items():
|
||||||
device = self.api.devices[device_id]
|
device = self.api.devices[device_id]
|
||||||
commands = [(idx, mode) for idx, mode in device_commands.items()]
|
commands = list(device_commands.items())
|
||||||
await self.api.request(
|
await self.api.request(
|
||||||
DeviceSetPoePortModeRequest.create(device, targets=commands)
|
DeviceSetPoePortModeRequest.create(device, targets=commands)
|
||||||
)
|
)
|
||||||
|
@ -594,7 +594,12 @@ ignore = [
|
|||||||
"D407", # Section name underlining
|
"D407", # Section name underlining
|
||||||
"E501", # line too long
|
"E501", # line too long
|
||||||
"E731", # do not assign a lambda expression, use a def
|
"E731", # do not assign a lambda expression, use a def
|
||||||
"PLC1901", # Lots of false positives
|
|
||||||
|
# Ignore ignored, as the rule is now back in preview/nursery, which cannot
|
||||||
|
# be ignored anymore without warnings.
|
||||||
|
# https://github.com/astral-sh/ruff/issues/7491
|
||||||
|
# "PLC1901", # Lots of false positives
|
||||||
|
|
||||||
# False positives https://github.com/astral-sh/ruff/issues/5386
|
# False positives https://github.com/astral-sh/ruff/issues/5386
|
||||||
"PLC0208", # Use a sequence type instead of a `set` when iterating over values
|
"PLC0208", # Use a sequence type instead of a `set` when iterating over values
|
||||||
"PLR0911", # Too many return statements ({returns} > {max_returns})
|
"PLR0911", # Too many return statements ({returns} > {max_returns})
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
black==23.9.1
|
black==23.9.1
|
||||||
codespell==2.2.2
|
codespell==2.2.2
|
||||||
ruff==0.0.289
|
ruff==0.0.292
|
||||||
yamllint==1.32.0
|
yamllint==1.32.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user