From 29b362c8cee3eee7d749c347ed5c1b5051a78269 Mon Sep 17 00:00:00 2001 From: Markos Gogoulos Date: Wed, 20 Nov 2024 13:27:57 +0200 Subject: [PATCH] fix: flake8 --- .github/workflows/semantic-release.yaml | 38 ------------------- .../commands/process_translations.py | 2 +- files/tasks.py | 2 +- 3 files changed, 2 insertions(+), 40 deletions(-) delete mode 100644 .github/workflows/semantic-release.yaml diff --git a/.github/workflows/semantic-release.yaml b/.github/workflows/semantic-release.yaml deleted file mode 100644 index c192e3a..0000000 --- a/.github/workflows/semantic-release.yaml +++ /dev/null @@ -1,38 +0,0 @@ -name: Semantic Release - -on: - push: - branches: - - main - -permissions: - contents: write - issues: write - -jobs: - semantic-release: - runs-on: ubuntu-latest - environment: dev - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} - persist-credentials: false - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "lts/*" - - - name: Install Dependencies - run: npm clean-install - - - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies - run: npm audit signatures - - - name: Run Semantic Release - run: npx semantic-release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/files/management/commands/process_translations.py b/files/management/commands/process_translations.py index 1b1fa6b..d2dc95c 100644 --- a/files/management/commands/process_translations.py +++ b/files/management/commands/process_translations.py @@ -47,7 +47,7 @@ class Command(BaseCommand): 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") diff --git a/files/tasks.py b/files/tasks.py index f7a408f..b9f3a19 100644 --- a/files/tasks.py +++ b/files/tasks.py @@ -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()))