2018-04-09 17:44:30 +00:00
|
|
|
[tox]
|
|
|
|
envlist = py3
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps =
|
|
|
|
-rrequirements-dev.txt
|
|
|
|
commands =
|
|
|
|
coverage erase
|
2018-04-10 18:09:42 +00:00
|
|
|
coverage run --source=minitor/ -m pytest --capture=no -vv {posargs:tests}
|
2018-04-09 17:44:30 +00:00
|
|
|
coverage report -m --fail-under 50
|
|
|
|
pre-commit run --all-files
|
|
|
|
|
|
|
|
[testenv:pre-commit]
|
2018-04-12 01:16:26 +00:00
|
|
|
deps =
|
|
|
|
pre-commit
|
2018-04-09 17:44:30 +00:00
|
|
|
commands =
|
|
|
|
pre-commit {posargs}
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,.ropeproject,.tox,docs,virtualenv_run
|
|
|
|
filename = *.py,*.wsgi
|
|
|
|
max-line-length = 80
|
|
|
|
ignore = F403
|
|
|
|
|
|
|
|
[pytest]
|
|
|
|
norecursedirs = .* _darcs CVS docs virtualenv_run
|