Add pre-commit hooks
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
2da8b7e511
commit
fae6454661
4 changed files with 33 additions and 2 deletions
12
tox.ini
12
tox.ini
|
|
@ -1,8 +1,10 @@
|
|||
[tox]
|
||||
envlist = py26,py27
|
||||
envlist = py27,pre-commit
|
||||
|
||||
[testenv]
|
||||
usedevelop=True
|
||||
passenv =
|
||||
LD_LIBRARY_PATH
|
||||
deps =
|
||||
-rrequirements.txt
|
||||
-rrequirements-dev.txt
|
||||
|
|
@ -10,6 +12,14 @@ commands =
|
|||
nosetests -v {posargs}
|
||||
flake8 compose tests setup.py
|
||||
|
||||
[testenv:pre-commit]
|
||||
skip_install = True
|
||||
deps =
|
||||
pre-commit
|
||||
commands =
|
||||
pre-commit install
|
||||
pre-commit run --all-files
|
||||
|
||||
[flake8]
|
||||
# ignore line-length for now
|
||||
ignore = E501,E203
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue