Skip to content

Commit cc1dd73

Browse files
committed
pre-commit: Have pre-commit pass the list of files to codeformat.py
1 parent c2ed1b0 commit cc1dd73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ repos:
2121
language: system
2222
- id: formatting
2323
name: Formatting
24-
entry: sh -c "git diff --staged --name-only | xargs -r python3 tools/codeformat.py"
24+
entry: python3 tools/codeformat.py
2525
types_or: [c, python]
2626
language: system

0 commit comments

Comments
 (0)