aboutsummaryrefslogtreecommitdiff
path: root/tools/check-format
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-07-03 12:19:33 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-07-03 12:19:33 +0200
commitee91214e72eb1e629d66ff5993f70d58915a3402 (patch)
tree1b61c2dce6bd30141e0ca0a6f92b40c08a60029e /tools/check-format
parenta82af5766c4f5edecae6e5e98580d27495896062 (diff)
downloadchattymalloc-ee91214e72eb1e629d66ff5993f70d58915a3402.tar.gz
chattymalloc-ee91214e72eb1e629d66ff5993f70d58915a3402.zip
[build] add yapf to check and format python code
Diffstat (limited to 'tools/check-format')
-rwxr-xr-xtools/check-format5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/check-format b/tools/check-format
index 414ddc4..8711d70 100755
--- a/tools/check-format
+++ b/tools/check-format
@@ -24,3 +24,8 @@ find "${ROOTDIR}" -path "${ROOTDIR}/build*" -prune -o \
-type f -name '*.[c|h|cpp]' -print0 |\
xargs --null --max-args=3 --max-procs="${MAX_PROCS}" \
clang-format --style=file --dry-run -Werror
+
+find "${ROOTDIR}" -path "${ROOTDIR}/build*" -prune -o \
+ -type f -name '*.py' -print0 |\
+ xargs --null --max-args=3 --max-procs="${MAX_PROCS}" \
+ yapf -p -d