Skip to content

Commit

Permalink
upgrade ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasf committed Jul 13, 2023
1 parent 1e47fbe commit c01f000
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions minio_storage/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -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 =
Expand Down

0 comments on commit c01f000

Please sign in to comment.