Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Pre-commit hooks: enforce ruff lint + format on staged changes before commit.
# Install once per clone: pre-commit install
# Run manually: pre-commit run --all-files
#
# Hooks run on STAGED files only by default, so pre-existing lint debt in
# untouched files does not block commits. New or edited files must pass.

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
hooks:
- id: ruff
args: [--fix]
- id: ruff-format