-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
74 lines (62 loc) · 1.89 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
[tox]
envlist = lint,pypi-description,docs,py38
isolated_build = True
[testenv]
extras = tests
commands = python -m pytest {posargs}
[testenv:conf]
allowlist_externals =
*/jsonnet
skip_install = true
# jsonnet command line tool only allows one filename at a time
commands =
jsonnet -m accession_steps accession_steps/jsonnet/atac_chip.jsonnet
jsonnet -m accession_steps accession_steps/jsonnet/long_read_rna.jsonnet
jsonnet -m accession_steps accession_steps/jsonnet/wgbs.jsonnet
jsonnet -m accession_steps accession_steps/jsonnet/bulk_rna.jsonnet
[testenv:lint]
basepython = python3.8
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files
[testenv:lint-ignore-exit-code]
basepython = python3.8
skip_install = true
deps = pre-commit
commands = - pre-commit run --all-files
[testenv:coverage-report]
basepython = python3.8
extras = tests
commands = pytest --cov-report term-missing --cov=accession
[testenv:docs]
basepython = python3.8
extras = docs
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
[testenv:pypi-description]
basepython = python3.8
skip_install = true
deps =
twine
pip >= 18.0.0
commands =
pip wheel -w {envtmpdir}/build --no-deps .
twine check {envtmpdir}/build/*
[flake8]
max_line_length = 88
ignore = E203,E231,E501,W503
exclude = accession/__init__.py
[pytest]
markers =
docker: marks tests using dockerized local encoded server
filesystem: marks tests relying on the filesystem
[coverage:report]
# Adapted from https://coverage.readthedocs.io/en/latest/config.html#syntax
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.: