-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
executable file
·47 lines (41 loc) · 965 Bytes
/
tox.ini
File metadata and controls
executable file
·47 lines (41 loc) · 965 Bytes
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
[tox]
#envlist = py38, py39, py310, py311, py312, lint, type, format, notebook
envlist = py310, notebook
isolated_build = true
skip_missing_interpreters = true
# --- Regular tests ---
[testenv]
extras = dev
commands =
# run usual tests in parallel
pytest -v -m "not notebook" -n auto
# --- Notebook tests ---
[testenv:notebook]
extras = dev, notebooks
setenv =
KERNEL_INSTALLED=1
commands =
# run notebook tests in parallel
pytest -v -m "notebook" -n auto
# --- Linting with ruff ---
[testenv:lint]
description = Run ruff linter
extras = dev
commands =
ruff check .
# --- Code formatting check with black ---
[testenv:format]
description = Check code formatting
extras = dev
commands =
black --check .
# --- Type checking with mypy ---
[testenv:type]
description = Run mypy static type checks
extras = dev
commands =
mypy . --exclude build
[testenv:web]
description = Run web GUI tests
extras = web
commands = pytest tests/web