forked from pypi/warehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
75 lines (64 loc) · 1.57 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[tox]
envlist = py34,docs,pep8,packaging
[testenv]
deps =
coverage
factory_boy
freezegun
pretend
pytest
pytest-dbfixtures>=0.9.0
webtest
install_command = pip install -c requirements.txt {opts} {packages}
commands =
python -m coverage run -m pytest --strict {posargs}
python -m coverage report -m
[testenv:docs]
basepython = python2.7
skip_install = True
deps =
doc8
sphinx
sphinx_rtd_theme
sphinxcontrib-httpdomain
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
doc8 --allow-long-titles README.rst CONTRIBUTING.rst docs/ --ignore-path docs/_build/
[testenv:pep8]
basepython = python3.4
skip_install = True
deps =
flake8
pep8-naming
commands =
flake8 .
[testenv:packaging]
basepython = python3.4
skip_install = True
deps =
check-manifest
readme>=0.5.1
commands =
check-manifest
python setup.py check --restructuredtext --strict
[testenv:translations]
basepython = python2.7
whitelist_externals =
make
git
skip_install = True
deps =
jinja2
babel
commands =
make extract-translations
git --no-pager diff --exit-code -G "^(msg.*|.: )" warehouse/translations/warehouse.pot
[flake8]
exclude = .tox,*.egg,*/interfaces.py,node_modules
select = E,W,F,N
[pytest]
norecursedirs = .tox build dist node_modules *.egg-info
markers =
unit: Quick running unit tests which test small units of functionality.
functional: Slower running tests which test the entire system is functioning.