-
Notifications
You must be signed in to change notification settings - Fork 16
/
tox.ini
57 lines (51 loc) · 1.32 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
[tox]
requires =
tox>=4
env_list = lint,py39,py310,py311,py312-{flakes,requests27,requests26,requests25,requests24,requests23,requests22,requests1,httplib2,urllib317,urllib319,urllib3110},coverage
isolated_build = true
[testenv:lint]
description = run linters
skip_install = true
commands =
flake8 --version
flake8 .circleci/ contentful_management/ tests/
deps = flake8
[testenv]
commands =
python runtests.py
deps =
python-dateutil
vcrpy
requests
PyYAML
[flake8]
extend-ignore = E501,E231,E203,F401,F403,E261,E122,F811
[testenv:readme]
description = check that the long description is valid
basepython = python3.9
skip_install = true
deps =
twine>=4.0.1
extras =
commands =
pip wheel -w {envtmpdir}/build --no-deps .
twine check {envtmpdir}/build/*
[testenv:coverage]
description = run the test suite with coverage
passenv =
{[testenv]passenv}
DIFF_AGAINST
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage
skip_install = true
deps =
coverage
python-dateutil
vcrpy
requests
PyYAML
parallel_show_output = true
commands =
coverage run --source=contentful_management -m unittest discover
coverage report -m
depends = py39,py310,py311,py312-{flakes,requests27,requests26,requests25,requests24,requests23,requests22,requests1,httplib2,urllib317,urllib319,urllib3110}