-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
84 lines (75 loc) · 1.96 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
[tox]
minversion = 3.0
envlist = doc, py37, py38, py39
skipsdist = True
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/tests/requirements.txt
commands =
black -l 99 {toxinidir}/sphinxmark {toxinidir}/tests
mypy {toxinidir}/sphinxmark --config-file {toxinidir}/tox.ini
pytest {toxinidir}/sphinxmark {toxinidir}/tests
[testenv:doc]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/tests/requirements.txt
doc8
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
[doc8]
ignore-path = doc/_build*,.tox
extensions = .rst
max-line-length = 79
[flake8]
# B306 skipped because aiohttp uses BaseException.message
# 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
show-source = True
ignore = B306,E123,E125,H803,N802,N803,W503
builtins = _
exclude = .venv,.git,.tox,dist,*lib/python*,*egg
max-line-length = 99
inline-quotes = double
[isort]
include_trailing_comma=True
line_length=99
multi_line_output=3
skip=.tox
[mypy]
ignore_missing_imports = True
disallow_untyped_defs = True
[pytest]
norecursedirs =
.git
.tox
doc
python_files=
*.py
addopts =
--cov-config tox.ini
--cov-report term-missing
--cov sphinxmark/
--doctest-modules
--flake8
-ra
--show-capture=no
--tb short
-vv
filterwarnings =
ignore:invalid escape sequence*:DeprecationWarning
ignore:Using or importing the ABCs*:DeprecationWarning
ignore:'U' mode is deprecated*:DeprecationWarning
ignore:the sets module is deprecated*:DeprecationWarning
ignore:Possible nested set*:FutureWarning
[report]
# pytest-cov configuration
exclude_lines =
pragma: no cover
if __name__ == .__main__.: