Skip to content

ci: add ruff linter to pre-commit#16

Merged
rickstaa merged 1 commit into
mainfrom
rs/ruff
Jul 6, 2026
Merged

ci: add ruff linter to pre-commit#16
rickstaa merged 1 commit into
mainfrom
rs/ruff

Conversation

@rickstaa

@rickstaa rickstaa commented Jul 6, 2026

Copy link
Copy Markdown
Member

Add a Python linter to complement black. Picked ruff over flake8: same core checks (pyflakes F + pycodestyle E), ~100× faster, single tool, from Astral (makers of uv, already used here).

  • .pre-commit-config.yaml — adds the ruff hook after black. Black stays the formatter; ruff only lints.
  • Runs on every PR/push via the existing lint workflow (same config, no workflow change).
  • Existing code passes ruff's default rules with zero changes — this only wires up enforcement going forward.

Add ruff (pyflakes + pycodestyle default rules — the flake8 core, ~100x
faster, single tool from Astral) as a Python linter alongside black. Black
stays the formatter; ruff only lints. Existing code passes with no changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rickstaa rickstaa merged commit f0d9abf into main Jul 6, 2026
1 check passed
@rickstaa rickstaa deleted the rs/ruff branch July 6, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant