forked from kallimachos/cookbook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
80 lines (72 loc) · 1.75 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
[tox]
minversion = 3.6
envlist = bashate, py3
skipdist = True
[testenv]
deps = -r{toxinidir}/requirements.txt
whitelist_externals = pandoc
commands =
black -l 99 {toxinidir}/recipes
isort -c --diff {toxinidir}/recipes
pytest {toxinidir}/recipes
[testenv:bashate]
deps = bashate
commands =
bashate -e E* {toxinidir}/tools/deploy.sh
[testenv:doc]
deps =
-r{toxinidir}/requirements.txt
doc8
sphinx
sphinxcontrib-spelling
sphinx_rtd_theme
whitelist_externals = make
commands =
doc8 doc
make clean -C {toxinidir}/doc
make linkcheck -C {toxinidir}/doc
make spelling -C {toxinidir}/doc
make html -C {toxinidir}/doc
[flake8]
show-source = True
# H803 skipped (commit subject must not end with period)
# E123, E125, W503 skipped as they are invalid PEP-8.
# N802 skipped because we match method names to mixed case CAB API endpoints
# N803 skipped because some modules use mixed case arguments
# Ideal line length is < 80, but allow < 100
ignore = E123,E125,H803,N802,N803,W503
builtins = _
exclude = .venv,.git,.tox,dist,*lib/python*,*egg
max-line-length = 99
[isort]
skip=.tox
[pytest]
norecursedirs =
.git
.tox
doc
python_files=
*.py
addopts =
# -vv
-ra
--show-capture=no
--doctest-modules
--tb short
--flake8
--cov recipes/
--cov-report term-missing
--cov-config tox.ini
; -n auto
; --dist loadscope
filterwarnings =
ignore:invalid escape sequence*:DeprecationWarning
ignore:Possible nested set*:FutureWarning
[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