Update pre-commit

This commit is contained in:
Simon Conseil
2023-09-29 08:24:57 +02:00
parent 4c48498b98
commit cb5ce6e8e8
4 changed files with 5 additions and 11 deletions

View File

@@ -36,9 +36,7 @@ def walk_destination(destination, suffixes, compress_suffix):
for path, dirs, files in os.walk(destination):
for file in files:
original_filename = os.path.join(path, file)
compressed_filename = "{}.{}".format(
os.path.join(path, file), compress_suffix
)
compressed_filename = f"{os.path.join(path, file)}.{compress_suffix}"
path_exists = os.path.exists(compressed_filename)
file_ext = os.path.splitext(file)[1][1:]
if file_ext in suffixes: