Skip to content
Snippets Groups Projects
Commit 04ae2726 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Add pre-push

parent 6aace600
No related branches found
No related tags found
No related merge requests found
pre-push 0 → 100755
#!/usr/bin/env bash
# Checks run before every push
# has to be copied to .git/hooks
echo "Running pre-push hook"
echo "Running flake8 check"
flake8 --append-config=.flake8 src
# $? stores exit value of the last command
if [ $? -ne 0 ]; then
echo "flake8 failed"
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment