Issue #9 y #13 API basica de lista

This commit is contained in:
Daniel Cortes
2020-07-04 00:39:36 -04:00
parent 76a65371ce
commit f3a43de9ef
11 changed files with 449 additions and 13 deletions

View File

@@ -3,21 +3,12 @@
set -eu
. .venv/bin/activate
STASH_NAME=pre-commit-$(date +%s)
git stash save -q --keep-index $STASH_NAME
flake8 .
FLAKE_8=$?
./test.sh
TEST=$?
STASH_NUM=$(git stash list | grep $STASH_NAME | sed -re 's/stash@\{(.*)\}.*/\1/')
if [ -n "$STASH_NUM" ]; then
git stash pop -q stash@{$STASH_NUM}
fi
if [ $FLAKE_8 -ne 0 ]; then
exit $FLAKE_8
fi