From c01f000c1d68e4024a5bafbee8eb040c546ecd8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Fr=C3=B6ssman?= Date: Thu, 13 Jul 2023 13:17:09 +0200 Subject: [PATCH] upgrade ruff --- minio_storage/storage.py | 4 +--- tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/minio_storage/storage.py b/minio_storage/storage.py index ffa22c3..5e1368c 100644 --- a/minio_storage/storage.py +++ b/minio_storage/storage.py @@ -182,9 +182,7 @@ def delete(self, name: str) -> None: ) from error # Creates the backup filename - target_name = "{}{}".format( - timezone.now().strftime(self.backup_format), name - ) + target_name = f"{timezone.now().strftime(self.backup_format)}{name}" try: self.client.put_object( self.backup_bucket, target_name, obj, content_length diff --git a/tox.ini b/tox.ini index 8388df6..a4b93d8 100644 --- a/tox.ini +++ b/tox.ini @@ -65,7 +65,7 @@ setenv= PYTHONWARNINGS=ignore basepython = python3 deps = - ruff==0.0.277 + ruff==0.0.278 black==22.3.0 commands = ruff check . @@ -77,7 +77,7 @@ setenv= basepython = python3 deps = pyupgrade-directories - ruff==0.0.277 + ruff==0.0.278 isort==5.12.0 black==23.3.0 commands =