-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
39 lines (32 loc) · 894 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[tox]
projectname = tscached
envlist = py27
[testenv]
deps =
-rrequirements-dev.txt
commands =
py.test -vv --strict {posargs}
flake8 .
[testenv:pre-commit]
deps = pre-commit>=0.5.4
commands = pre-commit {posargs}
[testenv:coverage]
deps =
{[testenv]deps}
commands =
coverage run --source tscached/,testing/,tests/ -m pytest --strict {posargs}
coverage report --omit=.tox/*,tests/*,testing/*,build/*,/usr/share/pyshared/*,/usr/lib/pymodules/* -m
coverage html --omit=.tox/*,tests/*,testing/*,build/*,/usr/share/pyshared/*,/usr/lib/pymodules/*
[testenv:venv]
deps =
{[testenv]deps}
envdir = venv-{[tox]projectname}
commands =
[flake8]
exclude = .git,__pycache__,.tox,docs,build,virtualenv_run,env,venv,debian,uwsgi.py,debug-run.py,__init__.py
; ignore = E731
max-line-length = 120
[pep8]
max-line-length = 120
[pytest]
norecursedirs = .* docs venv* debian*