-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
35 lines (32 loc) · 855 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
[tox]
isolated_build = True
envlist = python3.7
# extras =
skipsdist = false
skip_install = false
[testenv]
; environment variable
setenv =
PYTHONPATH = {env:PYTHONPATH:}{:}{toxinidir}/src{:}{toxinidir}
; install_command = pip install -i https://pypi.tuna.tsinghua.edu.cn/simple {opts} {packages}
; install dependencies.
deps =
black == 19.10b0
isort == 4.3.21
flake8 == 3.7.9
pylint == 2.4.4
pytest == 5.3.5
coverage[toml] == 5.0.3
pytest-cov == 2.8.1
pandas >= 1.1.4
numpy >= 1.16
scipy >= 1.5.4
pytest-html == 3.1.1
; run command
commands =
black --check ./src
; isort --recursive --check-only ./src
flake8 ./src
pytest --junit-xml="./pytest.report" --cov=./src --cov-report=xml
; pytest --html="./pytest.report.html" --cov=./src --cov-report=html
pylint -r n --exit-zero ./src