forked from freeipa/freeipa-community-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
59 lines (52 loc) · 1.09 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
[tox]
envlist = py27,pep8,doc,sphinx
[testenv:py27]
sitepackages = True
setenv =
PYTHONPATH={envsitepackagesdir}
deps =
pytest
-r{toxinidir}/requirements.txt
commands =
py.test --capture=no --strict {posargs}
[testenv:pep8]
basepython = python2.7
deps =
flake8
flake8-import-order
pep8-naming
commands =
flake8 {posargs}
[testenv:py3pep8]
basepython = python3.4
deps =
flake8
flake8-import-order
pep8-naming
commands =
flake8 {posargs}
[testenv:doc]
deps =
doc8
docutils
markdown
basepython = python2.7
commands =
doc8 --allow-long-titles README
python setup.py check --restructuredtext --metadata --strict
markdown_py README.md -f {toxworkdir}/README.md.html
[testenv:sphinx]
basepython = python2.7
changedir = docs
deps =
sphinx < 1.3.0
commands =
sphinx-build -v -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[pytest]
#python_files = tests/*.py
[flake8]
exclude = .tox,*.egg,dist,build,docs/source,docs/conf.py,tests
show-source = true
max-line-length = 99
ignore = N802
application-import-names = freeipa_community_portal