Skip to content

Commit

Permalink
ci: only apply auto-fixes in pre-commit
Browse files Browse the repository at this point in the history
F401 returns linting errors as well as auto-fixes, so this disables the errors and just applies the fixes
  • Loading branch information
alycejenni committed Oct 30, 2024
1 parent f089680 commit 6bfbc93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
rev: v0.7.1
hooks:
- id: ruff
args: [ '--fix', '--select', 'I', '--select', 'F401' ]
args: [ '--fix', '--select', 'I', '--select', 'F401', '--fix-only' ]
- id: ruff-format
- repo: https://github.com/PyCQA/docformatter
rev: eb1df34
Expand Down

0 comments on commit 6bfbc93

Please sign in to comment.