forked from openedx/XBlock
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
39 lines (34 loc) · 769 Bytes
/
Copy pathtox.ini
File metadata and controls
39 lines (34 loc) · 769 Bytes
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
[tox]
envlist = py312-django{42,52}, quality, docs
requires = tox-uv>=1
[pytest]
DJANGO_SETTINGS_MODULE = xblock.test.settings
addopts = --cov xblock
filterwarnings = always
norecursedirs = .* docs requirements
[testenv]
runner = uv-venv-lock-runner
dependency_groups =
django42: django42
django52: test
commands =
python -Wd -m pytest {posargs:xblock}
python -m coverage xml
allowlist_externals =
make
[testenv:docs]
runner = uv-venv-lock-runner
basepython = python3.12
changedir = {toxinidir}/docs
dependency_groups = doc
commands =
make html
[testenv:quality]
runner = uv-venv-lock-runner
dependency_groups = quality
changedir = {toxinidir}
commands =
make quality
[pycodestyle]
ignore = E501,E402,E722
exclude = docs/*,.tox/,.venv/