-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathtox.ini
More file actions
33 lines (28 loc) · 738 Bytes
/
tox.ini
File metadata and controls
33 lines (28 loc) · 738 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
[tox]
envlist = py{311,312}-django{42},quality,without-django
skip_missing_interpreters = True
[testenv]
deps =
django42: Django>=4.2,<5.0
-r{toxinidir}/requirements/django-test.txt
commands = pytest -v --disable-pytest-warnings --nomigrations {posargs}
[testenv:without-django]
deps =
-r{toxinidir}/requirements/test.txt
commands = pytest --disable-pytest-warnings --ignore=opaque_keys/edx/django {posargs}
[testenv:quality]
commands =
pycodestyle --config=.pep8 opaque_keys
mypy
pylint --rcfile=pylintrc opaque_keys
[testenv:docs]
deps =
-r{toxinidir}/requirements/doc.txt
allowlist_externals =
make
env
setenv =
SPHINXOPTS = -W
commands =
make -e -C docs clean
make -e -C docs html