Merge pull request #119 from chriskuehl/only-precommit-on-py35
Only run pre-commit on python3.5
This commit is contained in:
commit
3b972dea15
2 changed files with 3 additions and 2 deletions
1
Makefile
1
Makefile
|
@ -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:
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue