diff --git a/githooks/pre-commit b/githooks/pre-commit index 0bc8e4a..8074f6c 100755 --- a/githooks/pre-commit +++ b/githooks/pre-commit @@ -1,7 +1,10 @@ #!/bin/sh +set -e + VERSION=$(grep version setup.py | sed -e 's/.*="//' -e 's/",//') sed -i "s/^__version__ = .*/__version__ = '${VERSION}'/" lmwsip/__init__.py git add lmwsip/__init__.py python setup.py test +yamllint .drone.yml