Merge pull request #119 from chriskuehl/only-precommit-on-py35

Only run pre-commit on python3.5
This commit is contained in:
Chris Kuehl 2016-09-13 09:11:13 -07:00 committed by GitHub
commit 3b972dea15
2 changed files with 3 additions and 2 deletions

View file

@ -55,6 +55,7 @@ docker-image:
.PHONY: test .PHONY: test
test: test:
tox tox
tox -e pre-commit
.PHONY: install-hooks .PHONY: install-hooks
install-hooks: install-hooks:

View file

@ -6,10 +6,10 @@ deps = -r{toxinidir}/requirements-dev.txt
passenv = HOME SSH_AUTH_SOCK USER passenv = HOME SSH_AUTH_SOCK USER
commands = commands =
python -m pytest python -m pytest
pre-commit run --all-files
[testenv:pre-commit] [testenv:pre-commit]
commands = pre-commit {posargs} basepython = /usr/bin/python3.5
commands = pre-commit {posargs:run --all-files}
[flake8] [flake8]
max-line-length = 119 max-line-length = 119