pre-commit: Migrate pyupgrade to ruff

Change-Id: Ic50d2a5e0bc9dcdfe29f382607135cab510cd396
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2024-09-12 17:57:14 +01:00
parent fc6852cd94
commit f98006ca9d
79 changed files with 753 additions and 1190 deletions

View File

@@ -96,8 +96,9 @@ class OpenStackShell(shell.OpenStackShell):
key=lambda s: list(map(int, s.split('.'))),
)
self.log.warning(
"%s version %s is not in supported versions: %s"
% (api, version_opt, ', '.join(sorted_versions))
"{} version {} is not in supported versions: {}".format(
api, version_opt, ', '.join(sorted_versions)
)
)
# Command groups deal only with major versions