From ee91214e72eb1e629d66ff5993f70d58915a3402 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 3 Jul 2020 12:19:33 +0200 Subject: [build] add yapf to check and format python code --- tools/check-format | 5 +++++ 1 file changed, 5 insertions(+) (limited to '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 -- cgit v1.2.3