-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
86 lines (74 loc) · 1.61 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[tox]
minversion = 2.3
envlist = doc, bashate, flake8, isort, pep257, py27, py3
skipsdist = True
[testenv]
deps = -r{toxinidir}/requirements.txt
whitelist_externals =
bash
make
commands = py.test -ra
[testenv:bashate]
deps = bashate
commands =
bashate -e E* {toxinidir}/tools/deploy.sh
[testenv:doc]
deps =
doc8
pyenchant
sphinx
sphinxcontrib-spelling
sphinx_rtd_theme
commands = doc8 doc
make clean -C {toxinidir}/doc
make linkcheck -C {toxinidir}/doc
make spelling -C {toxinidir}/doc
make html -C {toxinidir}/doc
[testenv:flake8]
deps =
flake8
pep8-naming
commands = flake8 --max-complexity 10
[testenv:isort]
deps = isort
commands = isort -c -s .tox
[testenv:pep257]
deps = pep257
commands = pep257
[doc8]
# Ignore target directories
ignore-path = doc/_build*,.tox
# File extensions to use
extensions = .rst
# Maximum line length should be 79
max-line-length = 79
[flake8]
show-source = True
# H803 skipped (commit subject must not end with period)
# E123, E125 skipped as they are invalid PEP-8.
ignore = E123,E125,H803
builtins = _
exclude=.venv,.git,.tox,dist,*lib/python*,*egg,*figures/*
[pytest]
norecursedirs =
.git
.tox
doc
python_files=
*.py
addopts =
-v
--ignore=setup.py
--doctest-modules
--tb short
--cov=mlogtest/
--cov-report term-missing
--cov-config tox.ini
[report]
# pytest-cov configuration
exclude_lines =
# Regexes for lines to exclude from consideration
pragma: no cover
# Have to re-enable the standard pragma
if __name__ == .__main__.:
# Don't include __main__ statements in coverage report