-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
46 lines (40 loc) · 1.28 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 = py310
isolated_build = true
[testenv]
deps = -r requirements/test.txt
setenv =
JUPYTER_PLATFORM_DIRS = 1
commands = pytest {posargs}
[testenv:nightly]
deps = -r requirements/nightly.txt
commands = pytest {posargs}
[testenv:unpinned]
description = Test with unpinned dependencies, as a user would install now.
deps =
-r requirements/basetest.txt
scippneutron[all]
tof
commands = pytest {posargs}
[testenv:static]
description = Code formatting and static analysis
skip_install = true
deps = -r requirements/static.txt
allowlist_externals = sh
# The first run of pre-commit may reformat files. If this happens, it returns 1 but this
# should not fail the job. So just run again if it fails. A second failure means that
# either the different formatters can't agree on a format or that static analysis failed.
commands = sh -c 'pre-commit run -a || (echo "" && pre-commit run -a)'
[testenv:mypy]
description = Type checking (mypy)
deps = -r requirements/mypy.txt
commands = python -m mypy .
[testenv:deps]
description = Update dependencies by running pip-compile-multi
deps =
pip-compile-multi
tomli
skip_install = true
changedir = requirements
commands = python ./make_base.py --nightly scipp,scippnexus,plopp,mpltoolbox,sciline,tof
pip-compile-multi -d . --backtracking