Skip to content

Commit

Permalink
feat: Add pre-commit hook for ruff (#3960)
Browse files Browse the repository at this point in the history
Add pre-commit hook
  • Loading branch information
cbornet authored Oct 1, 2024
1 parent 43ad226 commit b11207b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@ repos:
args:
- --fix=lf
- id: trailing-whitespace
- repo: local
hooks:
- id: ruff-check
name: ruff check
language: system
entry: bash -c "uv run ruff check"
- id: ruff-format
name: ruff format
language: system
entry: bash -c "uv run ruff format"

0 comments on commit b11207b

Please sign in to comment.