mirror of
https://github.com/home-assistant/core
synced 2024-10-04 19:32:24 +00:00
Update ruff to v0.0.292 (#101290)
This commit is contained in:
parent
d0700db7eb
commit
2f0ba154b9
|
@ -1,6 +1,6 @@
|
|||
repos:
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.0.289
|
||||
rev: v0.0.292
|
||||
hooks:
|
||||
- id: ruff
|
||||
args:
|
||||
|
|
|
@ -302,7 +302,7 @@ class UniFiController:
|
|||
self.poe_command_queue.clear()
|
||||
for device_id, device_commands in queue.items():
|
||||
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(
|
||||
DeviceSetPoePortModeRequest.create(device, targets=commands)
|
||||
)
|
||||
|
|
|
@ -594,7 +594,12 @@ ignore = [
|
|||
"D407", # Section name underlining
|
||||
"E501", # line too long
|
||||
"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
|
||||
"PLC0208", # Use a sequence type instead of a `set` when iterating over values
|
||||
"PLR0911", # Too many return statements ({returns} > {max_returns})
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
black==23.9.1
|
||||
codespell==2.2.2
|
||||
ruff==0.0.289
|
||||
ruff==0.0.292
|
||||
yamllint==1.32.0
|
||||
|
|
Loading…
Reference in a new issue