aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/distrib
diff options
context:
space:
mode:
authorGravatar Ken Payson <kpayson@google.com>2017-12-13 13:44:34 -0800
committerGravatar Ken Payson <kpayson@google.com>2017-12-13 13:44:34 -0800
commitbc1658492a6a8157550f94b10bdf4a87fc5e83bb (patch)
tree10dfba7f1c57dfc43d8703fd76e10e1c0cbcd4d9 /tools/distrib
parentcc04915b07cfd5245b43bb91cfa610cd406dc3f6 (diff)
Ignore pyc files on yapf diff
Diffstat (limited to 'tools/distrib')
-rwxr-xr-xtools/distrib/yapf_code.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/distrib/yapf_code.sh b/tools/distrib/yapf_code.sh
index 44eb967c4b..fb14f36c66 100755
--- a/tools/distrib/yapf_code.sh
+++ b/tools/distrib/yapf_code.sh
@@ -54,7 +54,7 @@ else
tempdir=$(mktemp -d)
cp -RT "${dir}" "${tempdir}"
yapf "${tempdir}"
- diff -ru "${dir}" "${tempdir}" || ok=no
+ diff -x '*.pyc' -ru "${dir}" "${tempdir}" || ok=no
rm -rf "${tempdir}"
done
if [[ ${ok} == no ]]; then