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