Skip to content

Commit 37abe60

Browse files
committed
[IMP] pre-commit: better message on ruff violations
Show the sources and proposed fixes in case of ruff violations. Part of odoo/upgrade#5293 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent ff41414 commit 37abe60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
hooks:
1717
- id: ruff
1818
name: Check code with Ruff, apply automatic fixes
19-
args: [ --fix, --exit-non-zero-on-fix ]
19+
args: [ --fix, --show-fixes, --show-source, --exit-non-zero-on-fix ]
2020
- repo: https://github.com/psf/black-pre-commit-mirror
2121
rev: 23.9.1
2222
hooks:

0 commit comments

Comments
 (0)