Skip to content

Commit

Permalink
Add --fix flag to ruff pre-commit hook for automatic suggestion of …
Browse files Browse the repository at this point in the history
…fixes.

This is documented in https://github.com/astral-sh/ruff-pre-commit?tab=readme-ov-file#using-ruff-with-pre-commit and should be safe to apply, because it requires the developer to "manually approve the suggested changes via `git add`.
  • Loading branch information
abravalheri committed Aug 12, 2024
1 parent dd30b76 commit 3801b8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ repos:
rev: v0.5.6
hooks:
- id: ruff
args: [--fix]
- id: ruff-format

0 comments on commit 3801b8e

Please sign in to comment.