Add pre-commit files and linting using pre-commit

This commit is contained in:
Bruno Oliveira
2018-07-27 17:46:25 -03:00
parent 3776f3b74b
commit 1ed3884da9
3 changed files with 34 additions and 11 deletions

16
tox.ini
View File

@@ -1,11 +1,10 @@
[tox]
# if you change the envlist, please update .travis.yml file as well
envlist=
linting
py{27,34,35,36}-pytest{34,35,36}
py{27,36}-pytest36-pexpect
py{27,36}-pytest{master,features}
flakes
readme
[testenv]
@@ -28,16 +27,11 @@ commands=
py.cleanup -aq
pytest {posargs}
[testenv:flakes]
[testenv:linting]
changedir=
deps = flake8
commands = flake8 setup.py testing xdist
[testenv:readme]
changedir =
deps = readme
skip_install = true
commands = python setup.py check -r -s
deps =
pre-commit
commands = pre-commit run --all
[testenv:release]
changedir=