Update ruff config

ruff 0.3.5 issues warnings for these, update to current form.

Change-Id: I2a69bda80dc142770d9551b3982808e28594fc25
This commit is contained in:
Eric Harney 2024-04-10 10:41:43 -04:00
parent b0f0b9015b
commit 8f51bbbb30
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# hacking already covers E402 (and disagrees w/ ruff) # hacking already covers E402 (and disagrees w/ ruff)
ignore = ["E402"] lint.ignore = ["E402"]
[per-file-ignores] [lint.per-file-ignores]
"cinder/volume/drivers/fungible/swagger_api_client.py" = ["E501"] "cinder/volume/drivers/fungible/swagger_api_client.py" = ["E501"]

View File

@ -282,7 +282,7 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
ruff ruff
commands = commands =
ruff {toxinidir}/cinder {posargs} ruff check {toxinidir}/cinder {posargs}
[hacking] [hacking]
import_exceptions = typing import_exceptions = typing