-
Notifications
You must be signed in to change notification settings - Fork 166
/
tox.ini
54 lines (48 loc) · 1.33 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
[tox]
envlist =
py3{12,11,10,9,8}
py311-min
py39-min
lint
typing
doc
#pypy38
skip_missing_interpreters = true
[testenv]
envtmpdir = {toxworkdir}/tmp/{envname}
deps =
-r requirements/tests.txt
-r requirements/core.txt
min: -r requirements/min.txt
allowlist_externals = make
commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs:test}
[testenv:lint]
package = wheel
wheel_build_env = .pkg
deps =
flake8
pylint
commands =
flake8 --count --select=E9,F63,F7,F82 --show-source --statistics skgenome cnvlib
flake8 --count --exit-zero --max-complexity=20 --max-line-length=127 --statistics skgenome cnvlib
pylint --exit-zero --disable C0103,C0114,C0116,C0301,C0413,C1802,R0904,R0911,R0912,R0913,R0914,R0915,R1702,W0212,W0511 skgenome cnvlib
[testenv:coverage]
package = wheel
wheel_build_env = .pkg
deps = coverage[all]
commands = coverage run -m pytest test
[testenv:typing]
package = wheel
wheel_build_env = .pkg
deps = -r requirements/typing.txt
commands = mypy -p skgenome -p cnvlib --disable-error-code=method-assign
[testenv:doc]
package = wheel
wheel_build_env = .pkg
deps = -r requirements/doc.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
[testenv:build]
package = wheel
wheel_build_env = .pkg
deps = -r requirements/dev.txt
commands = python -m build .