-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
63 lines (53 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
[tox]
envlist =
py{37,38,39,310}-lint,
py{37,38,39,310}-unit,
py{37,38,39,310}-bandit,
py{37,38,39,310}-mypy,
py310-pydocstyle
skip_missing_interpreters = True
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[testenv]
description =
py{37,38,39,310}-unit: Run the unit tests
py{37,38,39,310}-lint: Lint the Python code
py{37,38,39,310}-bandit: Search for common security issues
py{37,38,39,310}-mypy: Check for type safety
py310-pydocstyle: docstring style checker
passenv =
CI
GITHUB_*
deps =
py{37,38,39,310}-{unit,mypy}: -rrequirements.txt
py{37,38,39,310}-{unit,mypy}: -rtest-requirements.txt
py{37,38,39,310}-lint: flake8-bugbear
py{37,38,39,310}-lint: black
py{37,38,39,310}-bandit: bandit
py{37,38,39,310}-mypy: -rmypy-requirements.txt
setenv =
py{37,38,39,310}-unit: LC_ALL = C.UTF-8
commands =
py{37,38,39,310}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
py{37,38,39,310}-bandit: bandit --recursive cwlprov
py{37,38,39,310}-lint: make flake8
py{37,38,39,310}-lint: make format-check
py{37,38,39,310}-mypy: make mypy
whitelist_externals =
py{37,38,39,310}-lint: flake8
py{37,38,39,310}-lint: black
py{37,38,39,310}-{mypy,shellcheck,lint,unit}: make
skip_install =
py{37,38,39,310}-lint: true
py{37,38,39,310}-bandit: true
[testenv:py310-pydocstyle]
whitelist_externals = make
commands = make diff_pydocstyle_report
deps =
pydocstyle
diff-cover
skip_install = true