From 4e2c5e51f3e101b21515f0ace7485bc23eac0127 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sun, 24 Sep 2017 12:00:45 +0200 Subject: [PATCH] Make git hooks optional --- Makefile | 2 +- docs/contributing.rst | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 00e2277..227fde6 100644 --- a/Makefile +++ b/Makefile @@ -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 \ diff --git a/docs/contributing.rst b/docs/contributing.rst index 4c4adb0..deb48f5 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -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::