Skip to content

Commit

Permalink
Merge pull request #136 from ssec-jhu/dont-format-from-git-hook
Browse files Browse the repository at this point in the history
Don't auto format from git hook
  • Loading branch information
jamienoss authored Jun 5, 2024
2 parents e51600b + 4ee8f3b commit 8cbd03d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions githooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,12 @@
# To use this githook copy this file to .git/hooks (in repo root dir)
# The file permissions may need changing using ``chmod +x .git/hooks/pre-push``

echo Running formatter...
TEST_RESULTS=$(tox -e format)
RETURN_VALUE=$?
if [ $RETURN_VALUE != 0 ]; then
echo "$TEST_RESULTS"
exit 1
fi
echo Finished
exit 0

echo Running ruff linter tests...
TEST_RESULTS=$(tox -e check-style)
RETURN_VALUE=$?
if [ $RETURN_VALUE != 0 ]; then
echo "$TEST_RESULTS"
echo "To auto format run: tox -e format"
exit 1
fi
echo PASSED
Expand Down

0 comments on commit 8cbd03d

Please sign in to comment.