forked from spacetelescope/fitsblender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
46 lines (38 loc) · 794 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
45
46
[tox]
isolated_build = true
envlist = py{38,39,310}
style
security
build-docs
skip_missing_interpreters = true
[pytest]
testpaths =
fitsblender/tests
[testenv]
changedir = {toxinidir}
setenv =
PYTHONPATH = {toxinidir}
deps =
pytest
commands =
pytest -s fitsblender/tests
[testenv:style]
description = Check with flake8
skip_install = true
deps =
flake8
commands =
flake8 {posargs}
[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