pre-commit: Have pre-commit pass the list of files to codeformat.py

This commit is contained in:
Jeff Epler 2021-03-15 15:32:26 -05:00
parent c2ed1b0942
commit cc1dd73e94

View File

@ -21,6 +21,6 @@ repos:
language: system language: system
- id: formatting - id: formatting
name: 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] types_or: [c, python]
language: system language: system