Skip to content

Commit 7980e86

Browse files
committed
ci: pin Ruff to pre-commit version
Use Ruff 0.15.15 in CI and the test extra so whole-repository formatting remains deterministic and matches the pre-commit hook.
1 parent 3628b3c commit 7980e86

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020
python-version: "3.14"
2121
cache: "pip"
2222
- name: Install ruff
23-
run: pip install ruff
23+
# Keep this version aligned with the ruff-pre-commit revision.
24+
run: pip install ruff==0.15.15
2425
- name: Lint with ruff
2526
run: |
2627
ruff check . --output-format=github

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ test = [
5454
"pytest-rerunfailures",
5555
"coverage",
5656
"pytest-httpx",
57-
"ruff",
57+
"ruff==0.15.15",
5858
"dataretrieval[type-check]", # mypy, pinned once in the type-check extra
5959
]
6060
doc = [

0 commit comments

Comments
 (0)