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 (jaraco/skeleton#140)

* Add `--fix`  flag to ruff pre-commit hook for automatic suggestion of 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`.

* Add --unsafe-fixes to ruff pre-commit hoot
  • Loading branch information
abravalheri committed Aug 25, 2024
1 parent f1350e4 commit 57b8aa8
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, --unsafe-fixes]
- id: ruff-format

0 comments on commit 57b8aa8

Please sign in to comment.