-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.ini
44 lines (38 loc) · 872 Bytes
/
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
[tox]
envlist = py38,lint,lint-security,coverage
[gh-actions]
python =
3.10: py310
[testenv]
skip_install = True
conda_channels =
conda-forge
mantid/label/nightly
conda_deps =
mantid
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands =
python tests/data/remote_files.py
pytest {posargs}
[testenv:lint]
skip_install = True
deps = flake8
commands = flake8 total_scattering/ tests/ setup.py --count
[testenv:lint-security]
skip_install = True
deps = bandit
commands = bandit -r total_scattering/ -x total_scattering/_version.py
[testenv:coverage]
skip_install = True
conda_channels =
conda-forge
mantid/label/nightly
conda_deps =
mantid
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands =
pytest --cov=total_scattering --cov-report=term-missing tests/