-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
81 lines (71 loc) · 1.68 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
[tox]
envlist = {py38,py39,py310}-{typecheck,test},lint,docs,safety
isolated_build = True
[testenv]
passenv = TERM
deps =
typecheck: -rpackaging/requirements-typecheck.txt
test: -rpackaging/requirements-test.txt
commands =
typecheck: mypy --package sphinx_xml2rfc \
typecheck: --config-file {toxinidir}/tox.ini
test: py.test {posargs} \
test: -ra -vs --strict-markers \
test: --cov {envsitepackagesdir}/sphinx_xml2rfc \
test: --cov-report term-missing \
test: --cov-report xml \
test: --cov-branch
[testenv:lint]
deps = -rpackaging/requirements-lint.txt
commands = flake8 .
[testenv:docs]
deps = -rpackaging/requirements-docs.txt
commands = sphinx-build -E docs/ build/docs/html/
[testenv:safety]
deps = -rpackaging/requirements-safety.txt
commands =
safety check --full-report
safety check -r packaging/requirements-dev.txt --full-report
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
[gh-actions:env]
TOX_JOB =
lint: lint
typecheck: typecheck
test: test
docs: docs
safety: safety
[mypy]
pretty = True
strict = True
show_error_codes = True
mypy_path = stubs
[coverage:run]
source = sphinx_xml2rfc
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
if __name__ == .__main__.:
if typing.TYPE_CHECKING:
raise NotImplementedError
raise io.UnsupportedOperation
[flake8]
max-line-length = 79
doctests = True
docstring-convention = pep257
radon-max-cc = 10
statistics = True
count = True
exclude =
.git,
__pycache__,
build,
dist,
.venv,
.tox,
per-file-ignores =
tests/*.py:S101