From 3f892a357a1657ac4a9ce5f1dcfc60be3845ab6d Mon Sep 17 00:00:00 2001 From: Khole Jones <29937485+KJonline@users.noreply.github.com> Date: Mon, 4 May 2026 18:45:34 +0100 Subject: [PATCH 1/2] ci: update ruff hook name from 'ruff' to 'ruff-check' in GitHub Actions workflow --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59f88cb..6de80a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -349,7 +349,7 @@ jobs: - name: Run ruff run: | . venv/bin/activate - pre-commit run ruff --all-files --show-diff-on-failure + pre-commit run ruff-check --all-files --show-diff-on-failure - name: Run ruff-format run: | . venv/bin/activate From 34703bfe8f75b880584ad2b23ec05214f7c1f138 Mon Sep 17 00:00:00 2001 From: Khole Jones <29937485+KJonline@users.noreply.github.com> Date: Mon, 4 May 2026 19:07:55 +0100 Subject: [PATCH 2/2] ci: remove pyupgrade job and rename lint-ruff to lint-ruff-check in GitHub Actions workflow --- .github/workflows/ci.yml | 47 ++-------------------------------------- 1 file changed, 2 insertions(+), 45 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6de80a7..c11cebe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -265,50 +265,7 @@ jobs: . venv/bin/activate pre-commit run --hook-stage manual check-json --all-files - lint-pyupgrade: - name: Check pyupgrade - runs-on: ubuntu-latest - needs: prepare-base - steps: - - name: Check out code from GitHub - uses: actions/checkout@v5 - - name: Set up Python ${{ env.DEFAULT_PYTHON }} - uses: actions/setup-python@v5 - id: python - with: - python-version: ${{ env.DEFAULT_PYTHON }} - - name: Restore base Python virtual environment - id: cache-venv - uses: actions/cache@v4 - with: - path: venv - key: >- - ${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{ - steps.python.outputs.python-version }}-${{ - hashFiles('pyproject.toml') }} - - name: Fail job if Python cache restore failed - if: steps.cache-venv.outputs.cache-hit != 'true' - run: | - echo "Failed to restore Python virtual environment from cache" - exit 1 - - name: Restore pre-commit environment from cache - id: cache-precommit - uses: actions/cache@v4 - with: - path: ${{ env.PRE_COMMIT_HOME }} - key: | - ${{ env.CACHE_VERSION}}-${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} - - name: Fail job if cache restore failed - if: steps.cache-venv.outputs.cache-hit != 'true' - run: | - echo "Failed to restore Python virtual environment from cache" - exit 1 - - name: Run pyupgrade - run: | - . venv/bin/activate - pre-commit run --hook-stage manual pyupgrade --all-files --show-diff-on-failure - - lint-ruff: + lint-ruff-check: name: Check ruff runs-on: ubuntu-latest needs: prepare-base @@ -346,7 +303,7 @@ jobs: run: | echo "Failed to restore Python virtual environment from cache" exit 1 - - name: Run ruff + - name: Run ruff-check run: | . venv/bin/activate pre-commit run ruff-check --all-files --show-diff-on-failure