From 6a48e519308653d5b816a80b9f2b36c32c61ae98 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 9 Sep 2025 15:59:59 +0000 Subject: [PATCH 1/4] CI: use pre-commit-uv for lint --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7392ea403..9d0734234 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,8 +18,17 @@ jobs: contents: read runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: pre-commit/action@v3.0.1 + - uses: actions/checkout@v5 + - uses: astral-sh/setup-uv@v6 + with: + cache-dependency-glob: ".github/workflows/*.yml" + cache-suffix: pre-commit-uv + - run: uv tool install pre-commit --with pre-commit-uv --force-reinstall + - uses: actions/cache@v4 + with: + path: ~/.cache/pre-commit + key: pre-commit-uv-v1-${{ hashFiles('.pre-commit-config.yaml') }} + - run: pre-commit run --all-files --show-diff-on-failure --color=always env: RUFF_OUTPUT_FORMAT: github test: From 11fdd9e62acc09ef118c531a0b97243255e4d744 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 9 Sep 2025 16:00:41 +0000 Subject: [PATCH 2/4] CI: renovate action versions --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d0734234..1816487a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,13 +53,13 @@ jobs: BABEL_CLDR_NO_DOWNLOAD_PROGRESS: "1" BABEL_CLDR_QUIET: "1" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: actions/cache@v4 with: path: cldr key: cldr-${{ hashFiles('scripts/*cldr*') }} - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} allow-prereleases: true @@ -86,8 +86,8 @@ jobs: runs-on: ubuntu-24.04 needs: lint steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 with: python-version: "3.13" cache: "pip" @@ -110,7 +110,7 @@ jobs: permissions: id-token: write steps: - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v5 with: name: dist path: dist/ From 13645237cece8962e81a0514ec972b469d371265 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 9 Sep 2025 16:13:10 +0000 Subject: [PATCH 3/4] CI: disable Pip version check No need to spend time on that, really --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1816487a7..2b31c90f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,6 +52,7 @@ jobs: env: BABEL_CLDR_NO_DOWNLOAD_PROGRESS: "1" BABEL_CLDR_QUIET: "1" + PIP_DISABLE_PIP_VERSION_CHECK: "1" steps: - uses: actions/checkout@v5 - uses: actions/cache@v4 From 27a7637d6576884a2963c4a97bdde146391904f2 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 9 Sep 2025 16:31:14 +0000 Subject: [PATCH 4/4] Upgrade pre-commit repos --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6a86ee871..3c4457139 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.1 + rev: v0.12.12 hooks: - - id: ruff + - id: ruff-check args: - --fix - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-docstring-first