-
-
Notifications
You must be signed in to change notification settings - Fork 113
/
tox.ini
54 lines (46 loc) · 1.02 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
[flake8]
max-line-length = 88
[coverage:run]
branch = true
parallel = true
omit =
.tox/*
tests/*
[coverage:report]
skip_covered = True
show_missing = True
exclude_lines =
if __name__ == .__main__.:
[tox]
envlist = py3{8,9,10,11,12,13}, flake8, black, pylint, coverage
isolated_build = True
[testenv]
deps =
pytest
coverage
hypothesis
commands = coverage run -m pytest --doctest-glob="README.md"
setenv =
COVERAGE_FILE={toxworkdir}/.coverage.{envname}
[testenv:coverage]
deps = coverage
depends = py38, py39, py310, py311, py312, py313
parallel_show_output = True
skip_install = True
setenv = COVERAGE_FILE={toxworkdir}/.coverage
commands =
coverage combine
coverage report --fail-under 100
[testenv:flake8]
deps =
flake8
flake8-bugbear
skip_install = True
commands = flake8 tests/ pipe.py
[testenv:black]
deps = black
skip_install = True
commands = black --check --diff tests/ pipe.py
[testenv:pylint]
deps = pylint
commands = pylint --disable=missing-function-docstring,redefined-builtin,invalid-name pipe.py