-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
54 lines (51 loc) · 1.36 KB
/
tox.ini
File metadata and controls
54 lines (51 loc) · 1.36 KB
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
[tox]
isolated_build = True
requires = tox-conda
envlist = py39, py310, py311, py312, py313, lint, mypy
; on Windows make sure that there are no pre-defined Python paths in the registry
; otherwise tox will use the wrong interpreter e.g. for py310 when you configured that when installing a distribution
; tox will return an error that interpreters are undefined
; for anaconda3, miniconda3, miniforge3 or mambaforge users this either means when installing uncheck the box where it
; says that you want you distribution to be the default so IDEs can detect it or delete the entry in the Registry-Editor
[testenv]
description = Run unit tests
conda_deps =
coverage >=7
pytest >=7
conda_channels =
conda-forge
conda_create_args =
--override-channels
conda_install_args =
--override-channels
commands =
coverage run -m pytest
[testenv:lint]
description = Run linting
basepython = python3.9
conda_deps =
isort >=5
pylint >=3
conda_channels =
conda-forge
conda_create_args =
--override-channels
conda_install_args =
--override-channels
commands =
isort . -c
pylint src
pylint tests --disable "import-error"
[testenv:mypy]
description = Run typing
basepython = python3.9
conda_deps =
mypy
conda_channels =
conda-forge
conda_create_args =
--override-channels
conda_install_args =
--override-channels
commands =
mypy src