-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
78 lines (67 loc) · 1.21 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
[tox]
envlist = typecheck,coverage,lint
isolated_build = true
[testenv]
commands = pytest {posargs}
deps = pytest
[testenv:lint]
commands = flake8 ./src/ ./tests/
skip_install = true
ignore_errors = true
basepython = python3.7
deps =
flake8
flake8-isort
flake8-print
[testenv:typecheck]
setenv =
MYPYPATH = src
commands =
mypy -p reparsec -p tests.parsers
skip_install = true
basepython = python3.7
deps =
mypy
types-dataclasses
[testenv:coverage]
commands =
coverage run -m pytest {posargs}
coverage run -a -m sphinx -b doctest ./docs/source ./docs/build
coverage report
coverage html
coverage xml
deps =
pytest
-r ./docs/requirements.txt
coverage
[testenv:bench]
commands = python -u bench.py {posargs}
basepython = python3.7
deps =
pyperf
psutil
[pytest]
minversion = 6.0
doctest_optionflags = NORMALIZE_WHITESPACE
testpaths =
tests
[coverage:run]
source = reparsec
branch = true
[coverage:report]
skip_empty = true
exclude_lines =
pragma: no cover
@abstractmethod
def __repr__
[coverage:html]
skip_covered = true
[isort]
line_length = 79
multi_line_output = 6
skip =
__pycache__
[flake8]
max_complexity = 10
exclude =
__pycache__