mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-30 09:45:53 +00:00
Screw git hooks
This commit is contained in:
parent
22717ee217
commit
6befffcc45
1 changed files with 1 additions and 8 deletions
9
Makefile
9
Makefile
|
|
@ -82,7 +82,7 @@ install-test: install-servers install-dev
|
|||
[ -z "$(TEST_EXTRA_PACKAGES)" ] || pip install $(TEST_EXTRA_PACKAGES)
|
||||
|
||||
install-style: install-docs install-dev
|
||||
pip install -U flake8 flake8-import-order flake8-bugbear autopep8
|
||||
pip install -U flake8 flake8-import-order flake8-bugbear
|
||||
|
||||
style:
|
||||
flake8
|
||||
|
|
@ -125,13 +125,6 @@ install-dev:
|
|||
pip install -U --force-reinstall $$(python setup.py --quiet minimal_requirements); \
|
||||
fi
|
||||
|
||||
install-git-hooks: install-style
|
||||
echo "make style-autocorrect" > .git/hooks/pre-commit
|
||||
chmod +x .git/hooks/pre-commit
|
||||
|
||||
style-autocorrect:
|
||||
git diff --cached --name-only | egrep '\.py$$' | xargs --no-run-if-empty autopep8 -ri
|
||||
|
||||
ssh-submodule-urls:
|
||||
git submodule foreach "\
|
||||
echo -n 'Old: '; \
|
||||
|
|
|
|||
Loading…
Reference in a new issue