diff options
| author | Jeff Epler <jepler@gmail.com> | 2021-03-15 15:32:26 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2021-03-15 15:32:26 -0500 |
| commit | cc1dd73e942ed8a5d335391e3bb6dc206576d993 (patch) | |
| tree | 77fc32d28270f7b7b1720c7a9e78911b99300720 | |
| parent | c2ed1b0942740cf6a6d061f1a058245d31490521 (diff) | |
pre-commit: Have pre-commit pass the list of files to codeformat.py
| -rw-r--r-- | .pre-commit-config.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aa6bda102..a6ad210f7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 |
