We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f085be1 commit d1873fcCopy full SHA for d1873fc
bin/git_hooks/check_format.sh
@@ -14,6 +14,8 @@ check-file () {
14
fmt="clang-format --assume-filename=$file"
15
elif [[ "$file" =~ .*\.(css|html|js|json|mjs|ts|tsx)$ ]]; then # keep in sync with .prettierignore
16
fmt="npx prettier --stdin-filepath $file"
17
+ elif [[ "$file" == *.py ]]; then # keep in sync with fmt-py in Makefile
18
+ fmt="black - --quiet --line-length 80 --stdin-filename $file"
19
else
20
exit 0;
21
fi
0 commit comments