Add pre-commit.

Esse commit está contido em:
William Ting
2016-06-01 14:13:51 -07:00
commit 731ff72358
5 arquivos alterados com 61 adições e 0 exclusões
+13
Ver Arquivo
@@ -0,0 +1,13 @@
.PHONY: pre-commit clean test
pre-commit:
@tox -e pre-commit -- install -f --install-hooks
test: pre-commit
@tox -e pre-commit -- run --all-files
@tox
clean:
@rm -fr .tox
@find . -name '*.py[co]' -delete
@find . -name '__pycache__' -delete