Make git hooks optional

This commit is contained in:
Markus Unterwaditzer 2017-09-24 12:00:45 +02:00
parent 8495d87196
commit 4e2c5e51f3
2 changed files with 6 additions and 3 deletions

View file

@ -111,7 +111,7 @@ release-deb:
sh scripts/release-deb.sh ubuntu xenial
sh scripts/release-deb.sh ubuntu zesty
install-dev: install-git-hooks
install-dev:
pip install -e .
[ "$(ETESYNC_TESTS)" = "false" ] || pip install -e .[etesync]
set -xe && if [ "$(REQUIREMENTS)" = "devel" ]; then \

View file

@ -82,10 +82,13 @@ virtualenv_ and run this inside of it::
# install:
# - vdirsyncer from the repo into the virtualenv
# - stylecheckers (flake8) and code formatters (autopep8)
# - git commit hook for autopep8
make install-dev
make install-test # install test dependencies
# Install git commit hook for the stylechecker
make install-git-hooks
# install test dependencies
make install-test
Then you can run::