-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
54 lines (44 loc) · 1.05 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
47
48
49
50
51
52
53
54
[tox]
envlist =
py{39,310,311,312}
style
security
build-docs
dev
skip_missing_interpreters = true
[pytest]
testpaths =
fitsblender/tests
[testenv]
changedir = {toxinidir}
set_env =
dev: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
commands_pre =
dev: pip install -r requirements-dev.txt -U --upgrade-strategy eager
deps =
pytest
cov: pytest-cov
commands =
pytest -s fitsblender/tests \
cov: --cov --cov-report term-missing \
{posargs}
[testenv:style]
description = Check with flake8
skip_install = true
deps =
flake8
commands =
flake8 --count fitsblender
[testenv:security]
description = Check security compliance
skip_install = true
deps =
bandit>=1.7
# Recursive check
commands =
bandit -r -l -v -x fitsblender/tests/* fitsblender
[testenv:build-docs]
description = Invoke sphinx-build to build the HTML docs
extras = docs
commands =
sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html