-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
46 lines (42 loc) · 1.03 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
[tox]
envlist =
bandit
lint
py3.{8,9,10,11}-unit
skip_missing_interpreters = True
[pytest]
asyncio_mode = auto
testpaths = tests
[testenv]
allowlist_externals = make
commands_pre =
py3.{9,10,11,12,13}-unit: python -m pip install -U pip setuptools wheel
py3.{9,10,11,12,13}-unit: python -m jupyter_workflow.ipython.install
commands =
py3.{9,10,11,12,13}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
deps =
py3.{9,10,11,12,13}-unit: -rrequirements.txt
py3.{9,10,11,12,13}-unit: -rtest-requirements.txt
description =
py3.{9,10,11,12,13}-unit: Run the unit tests
passenv =
CI
GITHUB_*
setenv =
py3.{9,10,11,12,13}-unit: LC_ALL = C.UTF-8
[testenv:bandit]
commands = bandit -r jupyter_workflow
deps =
-rrequirements.txt
-rbandit-requirements.txt
description = Search for common security issues
passenv =
CI
GITHUB_*
[testenv:lint]
allowlist_externals = make
commands = make flake8 format-check codespell-check pyupgrade
deps =
-rrequirements.txt
-rlint-requirements.txt
description = Lint the Python code