Skip to content

Commit 4fb551f

Browse files
chore(ci): pin ruff 0.15.5 and add pre-commit hooks
Pin CI ruff to match pyproject.toml expectations and add a minimal pre-commit config (ruff-format + ruff --fix) so local runs match CI.
1 parent 360a41c commit 4fb551f

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
python-version: "3.11"
3131
- name: Install ruff
32-
run: pip install --no-cache-dir ruff
32+
run: pip install --no-cache-dir ruff==0.15.5
3333
- name: Run ruff format check
3434
run: ruff format --check .
3535
- name: Run ruff lint check

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Lightweight Python formatting/lint for scenario workloads. Matches the ruff job in ci.yml.
2+
# Install: pip install pre-commit && pre-commit install
3+
repos:
4+
- repo: https://github.com/astral-sh/ruff-pre-commit
5+
rev: v0.15.5
6+
hooks:
7+
- id: ruff-format
8+
- id: ruff
9+
args: [--fix]

0 commit comments

Comments
 (0)