forked from common-workflow-language/cwltool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
79 lines (66 loc) · 2.06 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
75
76
77
78
79
[tox]
envlist =
py3{6,7,8,9,10}-lint
py3{6,7,8,9,10}-unit
py3{6,7,8,9,10}-bandit
py3{6,7,8,9,10}-mypy
py39-lintreadme
py39-shellcheck
py39-pydocstyle
skip_missing_interpreters = True
[pytest]
addopts=--ignore cwltool/schemas --basetemp ./tmp -n auto
testpaths = tests
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[testenv]
skipsdist =
py3{6,7,8,9,10}-!{unit,mypy,lintreadme} = True
description =
py3{6,7,8,9,10}-unit: Run the unit tests
py3{6,7,8,9,10}-lint: Lint the Python code
py3{6,7,8,9,10}-bandit: Search for common security issues
py3{6,7,8,9,10}-mypy: Check for type safety
py39-pydocstyle: docstring style checker
py39-shellcheck: syntax check for shell scripts
py39-lintreadme: Lint the README.rst→.md conversion
passenv =
CI
GITHUB_*
PROOT_NO_SECCOMP
extras =
py3{6,7,8,9,10}-unit: deps
deps =
py3{6,7,8,9,10}-{unit,lint,bandit,mypy}: -rrequirements.txt
py3{6,7,8,9,10}-{unit,mypy}: -rtest-requirements.txt
py3{6,7,8,9,10}-lint: -rlint-requirements.txt
py3{6,7,8,9,10}-bandit: bandit
py3{6,7,8,9,10}-bandit: importlib_metadata != 4.8.0
py3{6,7,8,9,10}-mypy: -rmypy-requirements.txt
py39-pydocstyle: pydocstyle
py39-pydocstyle: diff-cover
py39-lintreadme: twine
py39-lintreadme: wheel
py39-lintreadme: readme_renderer[md]
setenv =
py3{6,7,8,9,10}-unit: LC_ALL = C.UTF-8
commands_pre =
py3{6,7,8,9,10}-unit: python -m pip install -U pip setuptools wheel
py39-lintreadme: python setup.py sdist --dist-dir {distdir}
py39-lintreadme: python setup.py bdist_wheel --dist-dir {distdir}
commands =
py3{6,7,8,9,10}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
py3{6,7,8,9,10}-bandit: bandit -r cwltool
py3{6,7,8,9,10}-lint: make flake8 format-check codespell
py3{6,7,8,9,10}-mypy: make mypy mypyc PYTEST_EXTRA={posargs}
py39-shellcheck: make shellcheck
py39-pydocstyle: make diff_pydocstyle_report
py39-lintreadme: twine check {distdir}/*
skip_install =
py3{6,7,8,9,10}-{bandit,lint,mypy,shellcheck,pydocstyle,lintreadme}: true
allowlist_externals = make