-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtox.ini
55 lines (47 loc) · 1.02 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
[tox]
envlist = py{38,39,310,311,312},flake8
[gh-actions]
python =
3.8: py38,flake8
3.9: py39,flake8
3.10: py310,flake8
3.11: py311,flake8
3.12: py312,flake8
[flake8]
[coverage:run]
parallel = True
include =
bin/*
olxutils/*.py
tests/*.py
[coverage:report]
precision = 2
[testenv]
commands =
coverage run -m unittest discover tests {posargs}
deps =
-rrequirements/setup.txt
-rrequirements/test.txt
[testenv:flake8]
skip_install = True
deps = -rrequirements/flake8.txt
commands = flake8 {posargs}
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
coverage html
[testenv:bumpversion]
skip_install = True
passenv =
# Git can only find its global configuration if it knows where the
# user's HOME is.
HOME
# We set sign_tags in .bumpversion.cfg, so pass in the GnuPG agent
# reference to avoid having to retype the passphrase for an
# already-cached private key.
GPG_AGENT_INFO
deps = bump2version
commands = bump2version {posargs}