Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
npx lint-staged

# Ruff: check only staged Python files in backend/
STAGED_PY=$(git diff --cached --name-only --diff-filter=ACM -- 'backend/**/*.py')
if [ -n "$STAGED_PY" ]; then
backend/.venv/bin/ruff check $STAGED_PY
backend/.venv/bin/ruff format --check $STAGED_PY
fi
Loading