forked from mirrors/0ad
Print diff for ruff-format if check fails
It's a bit hard for contributors to figure out what ruff-format is unhappy about if all they get is a return status of non zero. Enable printing a diff with suggested changes with the pre-commit hook. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
@@ -27,7 +27,7 @@ repos:
|
||||
exclude: ^source/tools/webservices/
|
||||
- id: ruff-format
|
||||
args:
|
||||
- --check
|
||||
- --diff
|
||||
exclude: ^source/tools/webservices/
|
||||
- repo: local
|
||||
hooks:
|
||||
|
||||
Reference in New Issue
Block a user