]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Renovate CI & lint tools (#1228)
authorAarni Koskela <akx@iki.fi>
Tue, 9 Sep 2025 16:36:12 +0000 (19:36 +0300)
committerGitHub <noreply@github.com>
Tue, 9 Sep 2025 16:36:12 +0000 (19:36 +0300)
* CI: use pre-commit-uv for lint
* CI: renovate action versions
* CI: disable Pip version check (No need to spend time on that, really)
* Upgrade pre-commit repos

.github/workflows/ci.yml
.pre-commit-config.yaml

index 7392ea4030b8b39386cdd94d549bd41b73f385f7..2b31c90f96e87f323dbbdc9e707398770f734771 100644 (file)
@@ -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:
@@ -43,14 +52,15 @@ jobs:
     env:
       BABEL_CLDR_NO_DOWNLOAD_PROGRESS: "1"
       BABEL_CLDR_QUIET: "1"
+      PIP_DISABLE_PIP_VERSION_CHECK: "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
@@ -77,8 +87,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"
@@ -101,7 +111,7 @@ jobs:
     permissions:
       id-token: write
     steps:
-      - uses: actions/download-artifact@v4
+      - uses: actions/download-artifact@v5
         with:
           name: dist
           path: dist/
index 6a86ee8710e478f1bfeb5cda10f50e0dde0679b6..3c445713907cbdf4a8feab8a5766e0f6f85c86cf 100644 (file)
@@ -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