Skip to content

Commit f8fd960

Browse files
committed
Add option to enable pre-commit hooks
1 parent 19294ae commit f8fd960

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ if [ "$TASK" = "publish" ]; then
55
python setup.py sdist bdist_wheel
66
twine upload dist/* --repository-url https://upload.pypi.org/legacy/ -u "__token__" -p "$PYPI_API_TOKEN"
77
else
8-
pre-commit run --all-files && pytest --capture=no
8+
if [ "$RUN_PRE_COMMIT" == "true" ]; then
9+
pre-commit run --all-files
10+
fi
11+
pytest --capture=no
912
fi

0 commit comments

Comments
 (0)