-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
33 lines (30 loc) · 806 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
[tox]
isolated_build = True
envlist =
py38
# 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 =
py == 1.11.0
pytest == 7.2.1
pytest-cov == 3.0.0
pytest-html == 3.1.1
black == 23.1.0
isort == 5.12.0
flake8 == 6.0.0
pylint == 2.16.2
; run command
commands =
black --check ./src
isort --check ./src
flake8 ./src
pytest --junit-xml="./pytest.report.xml" --cov=./src --cov-report=xml
; pytest --html="./pytest.report.html" --cov=./src --cov-report=html
pylint -r n --exit-zero ./src