Add GitLint which replaces GitCommitBear
[releng/lftools.git] / tox.ini
1 [tox]
2 minversion = 2.0
3 envlist =
4     coala,
5     docs,
6     docs-linkcheck,
7     license,
8     pre-commit,
9     py35,
10     py36,
11     py37
12 skip_missing_interpreters = true
13
14 [testenv]
15 basepython = python3
16 deps = -r{toxinidir}/requirements-test.txt
17 commands = pytest
18
19 [testenv:coala]
20 basepython = python3
21 deps =
22     coala
23     coala-bears
24     nodeenv
25     numpy
26 commands =
27     nodeenv -p
28     npm install --global remark-cli remark-lint write-good
29     coala --non-interactive
30
31 [testenv:docs]
32 basepython = python3
33 deps = -rrequirements-docs.txt
34 extras = openstack
35 commands =
36     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
37
38 [testenv:docs-linkcheck]
39 basepython = python3
40 deps = -rrequirements-docs.txt
41 extras = openstack
42 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
43
44 [testenv:latest-upstream]
45 basepython = python3
46 deps = -r{toxinidir}/requirements-test.txt
47 commands =
48     pip install -U python-jenkins requests shade
49     pytest
50
51 [testenv:license]
52 basepython = python3
53 deps =
54     lftools
55 commands =
56     lftools license check-dir lftools
57     lftools license check-dir -r '.+' shell
58
59 [testenv:pre-commit]
60 basepython = python3
61 deps = pre-commit
62 commands =
63     pre-commit run --all-files
64     pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
65
66 [testenv:reno]
67 basepython = python3
68 deps = reno
69 commands = reno {posargs:--help}