-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
69 lines (61 loc) · 1.83 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; tox environment configuration
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[tox]
usedevelop = True
minversion = 3.23.1
toxworkdir = {toxinidir}/toxbase
envlist = mypy,pipcheck,safety,darglint,pytest
basepython =
python3.9
passenv =
PIP_EXTRA_INDEX_URL
requires =
tox-conda
conda-channels =
conda-forge
conda_install_args =
--override-channels
sitepackages = true
[testenv]
usedevelop = True
conda_deps =
; packages handled by conda
ffmpeg
deps =
py35,py36: importlib_resources
{[tox]requires}
; sometimes there are packages that have poorly defined dependency versions
; this file is intended to prefigure restrictions on downstream packages
; that aren't well defined. Good restrictions can significantly reduce
; environment installation time.
-c{toxinidir}/constraints.txt
; packages required for executing test environment
-r{toxinidir}/requirements-dev.txt
; packages installed through system path to override standard requirements
; defaults to an empty file of no requirements. Paths should be preceded
; with `--editable` if you want packages also be `usedevelop` enabled
-r{toxinidir}/requirements-local.txt
commands =
mypy: mypy src/
pipcheck: pipdeptree --warn fail
safety: safety check --full-report --ignore=44715 --ignore=44844
; This environment is only for development.
; https://tox.readthedocs.io/en/latest/example/devenv.html
[testenv:venv]
envdir = {toxinidir}/venv
commands =
[testenv:darglint]
docstring_style = sphinx
strictness = long
commands =
darglint: darglint -s sphinx src/
[testenv:pytest]
commands =
pytest \
--cov=acoio \
--cov-report= \
tests/ \
{posargs:-m commit}
coverage html
coverage report --fail-under=10