Skip to content

Commit 6befffc

Browse files
untitakerHugo Osvaldo Barrera
authored andcommitted
Screw git hooks
1 parent 22717ee commit 6befffc

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ install-test: install-servers install-dev
8282
[ -z "$(TEST_EXTRA_PACKAGES)" ] || pip install $(TEST_EXTRA_PACKAGES)
8383

8484
install-style: install-docs install-dev
85-
pip install -U flake8 flake8-import-order flake8-bugbear autopep8
85+
pip install -U flake8 flake8-import-order flake8-bugbear
8686

8787
style:
8888
flake8
@@ -125,13 +125,6 @@ install-dev:
125125
pip install -U --force-reinstall $$(python setup.py --quiet minimal_requirements); \
126126
fi
127127

128-
install-git-hooks: install-style
129-
echo "make style-autocorrect" > .git/hooks/pre-commit
130-
chmod +x .git/hooks/pre-commit
131-
132-
style-autocorrect:
133-
git diff --cached --name-only | egrep '\.py$$' | xargs --no-run-if-empty autopep8 -ri
134-
135128
ssh-submodule-urls:
136129
git submodule foreach "\
137130
echo -n 'Old: '; \

0 commit comments

Comments
 (0)