-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathtox.ini
More file actions
58 lines (52 loc) · 1.44 KB
/
tox.ini
File metadata and controls
58 lines (52 loc) · 1.44 KB
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
[tox]
envlist = py312-django{42,52}, quality, docs
[doc8]
ignore = D001
[pycodestyle]
exclude = .git,.tox,migrations
max-line-length = 120
max-doc-length = 120
[pytest]
DJANGO_SETTINGS_MODULE = test_utils.test_settings
addopts = --cov openedx_events --cov-report term-missing --cov-report xml
norecursedirs = .* docs requirements site-packages
[testenv]
deps =
django42: Django>=4.2,<4.3
django52: Django>=5.2,<5.3
-r{toxinidir}/requirements/test.txt
commands =
python manage.py check
pytest {posargs}
[testenv:docs]
setenv =
DJANGO_SETTINGS_MODULE = test_utils.test_settings
PYTHONPATH = {toxinidir}
# Adding the option here instead of as a default in the docs Makefile because that Makefile is generated by shpinx.
SPHINXOPTS = -W
allowlist_externals =
make
rm
deps =
-r{toxinidir}/requirements/doc.txt
commands =
doc8 --ignore-path docs/_build README.rst docs
rm -f docs/openedx_events.rst
rm -f docs/modules.rst
make -e -C docs clean
make -e -C docs html
python -m build --wheel
twine check dist/*
[testenv:quality]
allowlist_externals =
make
rm
touch
deps =
-r{toxinidir}/requirements/quality.txt
commands =
pylint openedx_events test_utils manage.py setup.py
pycodestyle openedx_events manage.py setup.py
ruff check openedx_events test_utils manage.py setup.py
isort --check-only --diff test_utils openedx_events manage.py setup.py
make selfcheck