Skip to content

Commit 57b8aa8

Browse files
authored
Add --fix flag to ruff pre-commit hook for automatic suggestion of 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
1 parent f1350e4 commit 57b8aa8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ repos:
33
rev: v0.5.6
44
hooks:
55
- id: ruff
6+
args: [--fix, --unsafe-fixes]
67
- id: ruff-format

0 commit comments

Comments
 (0)