Update ruff to v0.0.292 (#101290)

This commit is contained in:
Franck Nijhof 2023-10-02 21:49:10 +02:00 committed by GitHub
parent d0700db7eb
commit 2f0ba154b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 4 deletions

View file

@ -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:

View file

@ -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)
)

View file

@ -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})

View file

@ -2,5 +2,5 @@
black==23.9.1
codespell==2.2.2
ruff==0.0.289
ruff==0.0.292
yamllint==1.32.0