precommithook: yamllint toegevoegd op drone.yml

This commit is contained in:
Marcel Nijenhof
2021-07-27 20:48:16 +02:00
parent 5ecc6eac1e
commit 2eea60eb92

View File

@@ -1,6 +1,7 @@
#!/bin/sh
#!/bin/sh -e
VERSION=$(grep version setup.py | sed -e 's/.*="//' -e 's/",//')
sed -i "s/^__version__ = .*/__version__ = '${VERSION}'/" ddOperApi/__init__.py
git add ddOperApi/__init__.py
python setup.py test
yamllint .drone.yml