aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rwxr-xr-xtools/check-format5
2 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1def4c2..bb96527 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,7 @@ check: all check-format
format: all
ninja -C build clang-format
+ yapf -i -p $(shell find -path "build*" -prune -o -type f -name "*.py")
check-format:
./tools/check-format
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