We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8a6314 commit 628d610Copy full SHA for 628d610
scripts/style_tests
@@ -30,17 +30,16 @@ else
30
# Exit code of 1 if yapf has a non-empty diff
31
# (ie. scripts/format_code needs to be run)
32
echo "Checking that code is consistent with yapf..."
33
+
34
if !(yapf -dpr \
- -e "*.git*" \
35
-e "*build*" \
36
+ -e "*.egg-info*" \
37
-e "*cookiecutter_template*" \
38
-e "*tfod_utils*" \
- -e "**/conf.py" \
39
- -e "**/setup.py" \
40
-e "*.history*" \
41
- -e "data/*" \
42
-e "**/*.ipynb" \
43
- "$SRC_DIR" > /dev/null); then
+ "$SRC_DIR/rastervision_*/" "$SRC_DIR/tests/" "$SRC_DIR/integration_tests/" \
+ > /dev/null); then
44
echo "Code has not been formatted by yapf. Need to run ./scripts/format_code."
45
exit 1
46
fi
0 commit comments