Add pre-commit files and linting using pre-commit
This commit is contained in:
16
tox.ini
16
tox.ini
@@ -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=
|
||||
|
||||
Reference in New Issue
Block a user