-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Mohammad Ahtasham ul Hassan <[email protected]>
- Loading branch information
1 parent
26dc6b6
commit 99653e2
Showing
6 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,33 @@ | ||
[tox] | ||
envlist = py38-django{22,30,31,32},quality,without-django | ||
envlist = py38-django{32,40},quality,without-django | ||
skip_missing_interpreters = True | ||
|
||
[testenv] | ||
deps = | ||
django22: Django>=2.2,<2.3 | ||
django30: Django>=3.0,<3.1 | ||
django31: Django>=3.1,<3.2 | ||
django32: Django>=3.2,<3.3 | ||
-r{toxinidir}/requirements/django-test.txt | ||
commands = pytest --disable-pytest-warnings --nomigrations {posargs} | ||
deps = | ||
django32: Django>=3.2,<4.0 | ||
django40: Django>=4.0,<4.1 | ||
-r{toxinidir}/requirements/django-test.txt | ||
commands = pytest -v --disable-pytest-warnings --nomigrations {posargs} | ||
|
||
[testenv:without-django] | ||
deps = | ||
-r{toxinidir}/requirements/test.txt | ||
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 | ||
pylint --rcfile=pylintrc opaque_keys | ||
commands = | ||
pycodestyle --config=.pep8 opaque_keys | ||
pylint --rcfile=pylintrc opaque_keys | ||
|
||
[testenv:docs] | ||
deps = | ||
deps = | ||
-r{toxinidir}/requirements/doc.txt | ||
allowlist_externals = | ||
allowlist_externals = | ||
make | ||
env | ||
setenv = | ||
# -W will treat warnings as errors. | ||
setenv = | ||
SPHINXOPTS = -W | ||
commands = | ||
# -e allows for overriding setting from the environment. | ||
# -C changes the directory to `docs` before running the command. | ||
commands = | ||
make -e -C docs clean | ||
make -e -C docs html | ||
|