-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
54 lines (49 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
[tox]
envlist = py311-django42,py312-django42,docs,quality,pii_check
[doc8]
; D001 = Line too long
ignore = D001
[testenv]
deps =
django42: Django>=4.2,<4.3
-r{toxinidir}/requirements/test.txt
commands =
python manage.py check
python manage.py makemigrations openedx_certificates --check --dry-run --verbosity 3
pytest {posargs}
[testenv:docs]
setenv =
DJANGO_SETTINGS_MODULE = test_settings
PYTHONPATH = {toxinidir}
# Adding the option here instead of as a default in the docs Makefile because that Makefile is generated by sphinx.
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_certificates.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
deps =
-r{toxinidir}/requirements/quality.txt
commands =
ruff check .
yamllint --strict --format parsable .
make selfcheck
[testenv:pii_check]
setenv =
DJANGO_SETTINGS_MODULE = test_settings
deps =
Django>=4.2,<4.3
-r{toxinidir}/requirements/test.txt
commands =
code_annotations django_find_annotations --config_file .pii_annotations.yml --lint --report --coverage