Skip to content

Commit 005deaa

Browse files
committed
ci: pin ruff rule set so upstream default changes don't break CI
1 parent 04d5220 commit 005deaa

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/validate.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ jobs:
5858
echo "🔍 Running ruff..."
5959
pip install --quiet ruff
6060
# Lint every .py under .github/scripts/ - fails the job on any issue.
61-
# Style-only (no auto-fix). ruff defaults cover pyflakes + pycodestyle.
61+
# Style-only (no auto-fix). Rules come from ruff.toml, not ruff's
62+
# defaults, which move between releases.
6263
ruff check .github/scripts/
6364
echo "✅ ruff passed"
6465

ruff.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Pin the rule set instead of inheriting ruff's defaults. 0.16.0 widened them
2+
# (pyupgrade and friends) and turned CI red without a line of code changing.
3+
# These four are what the scripts have always been linted against: pyflakes
4+
# plus the pycodestyle checks that catch real errors rather than formatting.
5+
[lint]
6+
select = ["E4", "E7", "E9", "F"]

0 commit comments

Comments
 (0)