Skip to content

Commit 28f2afe

Browse files
committed
[IMP] pre-commit: improve hook messages
The ruff/black steps pretty uninformative. Part of odoo/upgrade#5232 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent 7ffdebf commit 28f2afe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ repos:
1515
rev: v0.0.292
1616
hooks:
1717
- id: ruff
18+
name: Check code with Ruff, apply automatic fixes
1819
args: [ --fix, --exit-non-zero-on-fix ]
1920
- repo: https://github.com/psf/black-pre-commit-mirror
2021
rev: 23.9.1
2122
hooks:
2223
- id: black
24+
name: Format code with Black automatically
2325
- repo: https://github.com/pre-commit/pre-commit-hooks
2426
rev: v4.4.0
2527
hooks:

0 commit comments

Comments
 (0)