Skip to content

Commit 24f148c

Browse files
authored
Renovate CI & lint tools (#1228)
* 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
1 parent 567199a commit 24f148c

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,17 @@ jobs:
1818
contents: read
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v4
22-
- uses: pre-commit/action@v3.0.1
21+
- uses: actions/checkout@v5
22+
- uses: astral-sh/setup-uv@v6
23+
with:
24+
cache-dependency-glob: ".github/workflows/*.yml"
25+
cache-suffix: pre-commit-uv
26+
- run: uv tool install pre-commit --with pre-commit-uv --force-reinstall
27+
- uses: actions/cache@v4
28+
with:
29+
path: ~/.cache/pre-commit
30+
key: pre-commit-uv-v1-${{ hashFiles('.pre-commit-config.yaml') }}
31+
- run: pre-commit run --all-files --show-diff-on-failure --color=always
2332
env:
2433
RUFF_OUTPUT_FORMAT: github
2534
test:
@@ -43,14 +52,15 @@ jobs:
4352
env:
4453
BABEL_CLDR_NO_DOWNLOAD_PROGRESS: "1"
4554
BABEL_CLDR_QUIET: "1"
55+
PIP_DISABLE_PIP_VERSION_CHECK: "1"
4656
steps:
47-
- uses: actions/checkout@v4
57+
- uses: actions/checkout@v5
4858
- uses: actions/cache@v4
4959
with:
5060
path: cldr
5161
key: cldr-${{ hashFiles('scripts/*cldr*') }}
5262
- name: Set up Python ${{ matrix.python-version }}
53-
uses: actions/setup-python@v5
63+
uses: actions/setup-python@v6
5464
with:
5565
python-version: ${{ matrix.python-version }}
5666
allow-prereleases: true
@@ -77,8 +87,8 @@ jobs:
7787
runs-on: ubuntu-24.04
7888
needs: lint
7989
steps:
80-
- uses: actions/checkout@v4
81-
- uses: actions/setup-python@v5
90+
- uses: actions/checkout@v5
91+
- uses: actions/setup-python@v6
8292
with:
8393
python-version: "3.13"
8494
cache: "pip"
@@ -101,7 +111,7 @@ jobs:
101111
permissions:
102112
id-token: write
103113
steps:
104-
- uses: actions/download-artifact@v4
114+
- uses: actions/download-artifact@v5
105115
with:
106116
name: dist
107117
path: dist/

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.9.1
3+
rev: v0.12.12
44
hooks:
5-
- id: ruff
5+
- id: ruff-check
66
args:
77
- --fix
88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v5.0.0
9+
rev: v6.0.0
1010
hooks:
1111
- id: check-added-large-files
1212
- id: check-docstring-first

0 commit comments

Comments
 (0)