mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Make git hooks optional
This commit is contained in:
parent
8495d87196
commit
4e2c5e51f3
2 changed files with 6 additions and 3 deletions
2
Makefile
2
Makefile
|
|
@ -111,7 +111,7 @@ release-deb:
|
||||||
sh scripts/release-deb.sh ubuntu xenial
|
sh scripts/release-deb.sh ubuntu xenial
|
||||||
sh scripts/release-deb.sh ubuntu zesty
|
sh scripts/release-deb.sh ubuntu zesty
|
||||||
|
|
||||||
install-dev: install-git-hooks
|
install-dev:
|
||||||
pip install -e .
|
pip install -e .
|
||||||
[ "$(ETESYNC_TESTS)" = "false" ] || pip install -e .[etesync]
|
[ "$(ETESYNC_TESTS)" = "false" ] || pip install -e .[etesync]
|
||||||
set -xe && if [ "$(REQUIREMENTS)" = "devel" ]; then \
|
set -xe && if [ "$(REQUIREMENTS)" = "devel" ]; then \
|
||||||
|
|
|
||||||
|
|
@ -82,10 +82,13 @@ virtualenv_ and run this inside of it::
|
||||||
# install:
|
# install:
|
||||||
# - vdirsyncer from the repo into the virtualenv
|
# - vdirsyncer from the repo into the virtualenv
|
||||||
# - stylecheckers (flake8) and code formatters (autopep8)
|
# - stylecheckers (flake8) and code formatters (autopep8)
|
||||||
# - git commit hook for autopep8
|
|
||||||
make install-dev
|
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::
|
Then you can run::
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue