From c1784f423264fb3b745ae5b554669152b47cf3ec Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Sun, 12 Jul 2026 20:31:20 +0800 Subject: [PATCH] ci: update fix workflow to also fix isort --- .gitea/workflows/fix-black.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/fix-black.yml b/.gitea/workflows/fix-black.yml index 2143b7ff5..4dfd6a584 100644 --- a/.gitea/workflows/fix-black.yml +++ b/.gitea/workflows/fix-black.yml @@ -1,4 +1,4 @@ -name: Fix Black Formatting +name: Fix Black + iSort Formatting on: push: @@ -6,7 +6,7 @@ on: - fix/black-format-render-adapter jobs: - fix-black: + fix-format: runs-on: host steps: - name: Checkout @@ -15,16 +15,24 @@ jobs: fetch-depth: 0 token: ${{ secrets.GITEA_TOKEN }} - - name: Install black and fix formatting + - name: Install and fix formatting run: | - pip install black -q + pip install black isort -q + + # Fix isort issues in the specific files + isort apps/worker/video_processing/render_adapter.py + isort apps/worker/video_processing/__init__.py + isort tests/unit/test_render_adapter.py + + # Also run black to be safe black tests/unit/test_render_adapter.py + git config user.name "CI Bot" git config user.email "ci@xiaoxia.local" - git add tests/unit/test_render_adapter.py + git add -A if git diff --cached --quiet; then echo "No changes needed" else - git commit -m "style: fix black formatting for test_render_adapter.py" + git commit -m "style: fix isort imports + black formatting" git push origin fix/black-format-render-adapter fi