-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
74 lines (67 loc) · 1.46 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]
isolated_build = true
envlist = build,lint,test,docs
[testenv]
setenv =
PYTHONPATH={toxinidir}/src
skip_install = true
[testenv:test]
deps =
-r{toxinidir}/requirements.txt
coverage
cwltool
cwlref-runner
pytest
pytest-cov
hypothesis
commands_pre =
coverage erase
commands =
pytest --cov --cov-report=term-missing --cov-append --cov-config=.coveragerc --hypothesis-show-statistics {posargs}
commands_post =
coverage report
coverage html
coverage xml
[testenv:lint]
deps =
flake8>=4
flake8-print>=5
flake8-bugbear
pygments
isort
commands =
flake8 {posargs:src tests setup.py docs}
isort --verbose --check-only --diff {posargs:src tests setup.py docs/conf.py}
[testenv:build]
deps =
setuptools
wheel
twine
docutils
check-manifest
readme-renderer
allowlist_externals = rm
commands_pre = rm -rfv {toxinidir}/build {toxinidir}/dist
commands =
python --version
python setup.py sdist bdist_wheel
twine check dist/*.whl
twine check dist/*.tar.gz
check-manifest {toxinidir}
[testenv:docs]
deps =
-r{toxinidir}/requirements.txt
sphinx
sphinx-click
sphinx_rtd_theme
commands =
sphinx-build {posargs:-E -W} -b html docs dist/docs
[flake8]
max_line_length = 100
[isort]
line_length = 100
multi_line_output = 3
include_trailing_comma = true
lines_after_imports = 2
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
known_first_party = runcrate