From 8f51bbbb30269afd91db90ea4764c18b7f61b49a Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Wed, 10 Apr 2024 10:41:43 -0400 Subject: [PATCH] Update ruff config ruff 0.3.5 issues warnings for these, update to current form. Change-Id: I2a69bda80dc142770d9551b3982808e28594fc25 --- ruff.toml | 4 ++-- tox.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ruff.toml b/ruff.toml index 95e6f82a71d..51686973eac 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,5 +1,5 @@ # 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"] diff --git a/tox.ini b/tox.ini index 7d73bc07471..11142c1e521 100644 --- a/tox.ini +++ b/tox.ini @@ -282,7 +282,7 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt ruff commands = - ruff {toxinidir}/cinder {posargs} + ruff check {toxinidir}/cinder {posargs} [hacking] import_exceptions = typing