Skip to content

Commit

Permalink
fix: flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
mgogoulos committed Nov 20, 2024
1 parent b8ee2e9 commit 29b362c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 40 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/semantic-release.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion files/management/commands/process_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def process_translation_files(self, translations_dir):
with open(file_path, 'w') as f:
f.write("translation_strings = {\n")
for key, value in translation_strings_wip.items():
f.write(f' "{key}": "{value}",\n')
f.write(f' "{key}": "{value}",\n') # noqa
f.write("}\n\n")

f.write("replacement_strings = {\n")
Expand Down
2 changes: 1 addition & 1 deletion files/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def produce_sprite_from_video(friendly_token):
output_name = tmpdirname + "/sprites.jpg"

fps = getattr(settings, 'SPRITE_NUM_SECS', 10)
ffmpeg_cmd = [settings.FFMPEG_COMMAND, "-i", media.media_file.path, "-f", "image2", "-vf", f"fps=1/{fps}, scale=160:90", tmpdir_image_files]
ffmpeg_cmd = [settings.FFMPEG_COMMAND, "-i", media.media_file.path, "-f", "image2", "-vf", f"fps=1/{fps}, scale=160:90", tmpdir_image_files] # noqa
run_command(ffmpeg_cmd)
image_files = [f for f in os.listdir(tmpdirname) if f.startswith("img") and f.endswith(".jpg")]
image_files = sorted(image_files, key=lambda x: int(re.search(r'\d+', x).group()))
Expand Down

0 comments on commit 29b362c

Please sign in to comment.