-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
72 lines (63 loc) · 1.7 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
[tox]
minversion = 1.6
envlist =
coala,pre-commit,
docs,
docs-linkcheck,
flake8,
py27,
py34,
py35,
py36,
pyunit,
skipsdist = true
skip_missing_interpreters = {env:TOX_SKIP_MISSING_INTERPRETERS:True}
[testenv]
install_command=python -m pip install --no-cache-dir {opts} {packages}
[testenv:pyunit]
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = find
commands =
find odltools -type f -name "*.pyc" -delete
python -m unittest discover -v
[testenv:coala]
basepython = python3
deps =
coala~=0.11.0
coala-bears~=0.11.0
detox~=0.18
pygments~=2.3.1
# nodeenv==1.1.2 # nodeenv and npm used for WriteGoodLintBear
# request-2.22.0 does not work with python-3.4.9
requests~=2.21.0
commands =
# nodeenv -p
# npm install --global remark-cli remark-lint write-good
python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
coala --non-interactive
[testenv:flake8]
basepython = python3
deps = flake8~=3.5.0
commands = flake8
skip_install = True
[flake8]
max-line-length = 120
exclude = build, dist, .tox, .github, *.egg, docs
[testenv:docs]
basepython = python3
deps = -rdocs/requirements.txt
commands = sphinx-build -W -n -b html -d {envtmpdir}/doctrees {toxinidir}/docs {envtmpdir}/html
[testenv:docs-linkcheck]
basepython = python3
deps = {[testenv:docs]deps}
commands =
sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees {toxinidir}/docs {envtmpdir}/linkcheck
[testenv:bist]
basepython = python3
deps = -r{toxinidir}/requirements.txt
commands = python -m odltools bist {posargs}
[testenv:pre-commit]
deps = pre-commit
commands =
pre-commit install --hook-type commit-msg
pre-commit run --all-files