-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathtox.ini
42 lines (35 loc) · 989 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
[tox]
envlist = py{3.11,3.9,3.8},pep8
skipsdist = True
[testenv]
basepython =
pep8: python3.11
py3.11: python3.11
py3.9: python3.9
py3.8: python3.8
passenv =
DOCKER_HOST
API_URL
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
commands = find . -type f -name "*.pyc" -delete
whitelist_externals = find
rm
go
docker
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:py3.11]
commands = pytest -v -s --tb=long --cov=fdk {toxinidir}/fdk/tests
[testenv:py3.9]
commands = pytest -v -s --tb=long --cov=fdk {toxinidir}/fdk/tests
[testenv:py3.8]
commands = pytest -v -s --tb=long --cov=fdk {toxinidir}/fdk/tests
[flake8]
ignore = H405,H404,H403,H401,H306,H304,H101,E303,H301,W503
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,docs,venv,.venv