-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
62 lines (53 loc) · 1.36 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
58
59
60
61
62
[tox]
envlist = py{311,312}-{flake8,pipdeptree,pipdeptree-requirements,xblock40-celery5}
[gh-actions]
python =
3.11: py311-{flake8,pipdeptree,pipdeptree-requirements,xblock40-celery5}
3.12: py312-{flake8,pipdeptree,pipdeptree-requirements,xblock40-celery5}
[flake8]
ignore = E124,W504
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,src
[coverage:run]
parallel = True
include =
hastexo/*.py
tests/*.py
[coverage:report]
precision = 2
exclude_lines =
pragma: no cover
raise NotImplementedError
[testenv]
deps =
-rrequirements/setup.txt
-rrequirements/test.txt
xblock40: XBlock>=4.0,<5
celery5: celery>=5,<6
commands =
python run_tests.py []
[testenv:py{311,312}-pipdeptree]
deps =
pipdeptree
commands = pipdeptree -w fail
[testenv:py{311,312}-pipdeptree-requirements]
deps =
-rrequirements.txt
pipdeptree
commands = pipdeptree -w fail
[testenv:py{311,312}-flake8]
skip_install = True
deps =
-rrequirements/flake8.txt
commands = flake8
[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}