Merge "Use six.text_type rather than str.encode('utf-8')"
[releng/lftools.git] / tox.ini
1 [tox]
2 minversion = 2.0
3 envlist =
4     check-hooks,
5     coala,
6     docs,
7     docs-linkcheck,
8     license,
9     py27,
10     py35,
11     py36,
12     py37
13 skip_missing_interpreters = true
14
15 [testenv]
16 deps = -r{toxinidir}/requirements-test.txt
17 commands = pytest
18
19 [testenv:check-hooks]
20 deps = pre-commit==1.11.2
21 commands =
22     pre-commit install
23     pre-commit run --all-files
24
25 [testenv:coala]
26 basepython = python3
27 deps =
28     coala
29     coala-bears
30     detox~=0.18
31     nodeenv==1.1.2
32     numpy
33 commands =
34     nodeenv -p
35     npm install --global remark-cli remark-lint write-good
36     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
37     coala --non-interactive
38
39 [testenv:docs]
40 deps = -rrequirements-docs.txt
41 extras = openstack
42 commands =
43     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
44
45 [testenv:docs-linkcheck]
46 deps = -rrequirements-docs.txt
47 extras = openstack
48 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
49
50 [testenv:latest-upstream]
51 deps = -r{toxinidir}/requirements-test.txt
52 commands =
53     pip install -U python-jenkins requests shade
54     pytest
55
56 [testenv:license]
57 deps =
58     lftools
59 commands =
60     lftools license check-dir lftools
61     lftools license check-dir -r '.+' shell
62
63 [testenv:reno]
64 deps = reno
65 commands = reno {posargs:--help}