Skip to content

Commit 628d610

Browse files
committed
speed up yapf cmd
1 parent b8a6314 commit 628d610

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/style_tests

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,16 @@ else
3030
# Exit code of 1 if yapf has a non-empty diff
3131
# (ie. scripts/format_code needs to be run)
3232
echo "Checking that code is consistent with yapf..."
33+
3334
if !(yapf -dpr \
34-
-e "*.git*" \
3535
-e "*build*" \
36+
-e "*.egg-info*" \
3637
-e "*cookiecutter_template*" \
3738
-e "*tfod_utils*" \
38-
-e "**/conf.py" \
39-
-e "**/setup.py" \
4039
-e "*.history*" \
41-
-e "data/*" \
4240
-e "**/*.ipynb" \
43-
"$SRC_DIR" > /dev/null); then
41+
"$SRC_DIR/rastervision_*/" "$SRC_DIR/tests/" "$SRC_DIR/integration_tests/" \
42+
> /dev/null); then
4443
echo "Code has not been formatted by yapf. Need to run ./scripts/format_code."
4544
exit 1
4645
fi

0 commit comments

Comments
 (0)