-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
54 lines (48 loc) · 1.02 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
[tox]
envlist = py{27, 35, 36, 37, 38},
lint,
docs,
coverage-report
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/naughty_string_validator
deps =
-r{toxinidir}/requirements.txt
pytest
coverage
commands =
coverage run --parallel -m py.test --basetemp={envtmpdir} --verbose
[testenv:coverage-report]
basepython = python3.7
skip_install = true
deps = coverage
commands =
coverage combine
coverage report
[testenv:lint]
deps =
-r{toxinidir}/requirements.txt
flake8
pylint
commands =
python setup.py flake8
pylint -E setup.py naughty_string_validator/
[pylint]
disable =
missing-docstring,
invalid-name,
unused-argument,
too-few-public-methods,
too-many-public-methods,
protected-access,
no-self-use,
too-many-instance-attributes,
fixme,
[testenv:docs]
changedir=docs/
deps =
-r{toxinidir}/requirements.txt
sphinx
commands =
sphinx-build -b linkcheck ./ _build/
sphinx-build -b html ./ _build/