1
0
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:
Ralph Sennhauser
2024-12-29 19:56:02 +01:00
parent 33111dc816
commit 28b0801e82
+1 -1
View File
@@ -27,7 +27,7 @@ repos:
exclude: ^source/tools/webservices/
- id: ruff-format
args:
- --check
- --diff
exclude: ^source/tools/webservices/
- repo: local
hooks: