-
Notifications
You must be signed in to change notification settings - Fork 130
/
tox.ini
65 lines (56 loc) · 1.27 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
[tox]
envlist = flake8,black,py39,py310,py311,py312,py313,mypy,docs
isolated_build = True
[testenv]
deps =
coverage
pytest
pytest-timeout
pytest-mock
install_command = python -m pip install --only-binary :all: {opts} {packages}
setenv = PYTHONDEVMODE = 1
commands =
coverage run -m pytest --doctest-modules --pyargs cutadapt tests
coverage combine -q
coverage report
coverage xml
[testenv:docs]
basepython = python3.10
skip_install = true
deps = -r doc/requirements.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
[testenv:flake8]
basepython = python3.10
deps = flake8
skip_install = true
commands = flake8 src/ tests/ setup.py
[testenv:mypy]
basepython = python3.10
deps = mypy
commands = mypy src/
[testenv:black]
basepython = python3.10
deps = black==22.3.0
skip_install = true
commands = black --check src/ tests/ setup.py
[coverage:run]
branch = True
parallel = True
concurrency = multiprocessing
source_pkgs = cutadapt
source = tests
[coverage:paths]
source =
src/
*/site-packages/
[coverage:report]
precision = 1
exclude_lines =
pragma: no cover
def __repr__
raise NotImplementedError
[flake8]
max-line-length = 120
max-complexity = 16
select = E,F,W,C90,W504
extend_ignore = E128,E131,W503,E203