pre-commit: Have pre-commit pass the list of files to codeformat.py
This commit is contained in:
parent
c2ed1b0942
commit
cc1dd73e94
@ -21,6 +21,6 @@ repos:
|
||||
language: system
|
||||
- id: formatting
|
||||
name: Formatting
|
||||
entry: sh -c "git diff --staged --name-only | xargs -r python3 tools/codeformat.py"
|
||||
entry: python3 tools/codeformat.py
|
||||
types_or: [c, python]
|
||||
language: system
|
||||
|
Loading…
x
Reference in New Issue
Block a user