-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08db0e3
commit 6b97df5
Showing
2 changed files
with
15 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,34 @@ | ||
[tox] | ||
envlist = py38, coverage, pylint | ||
envlist = py{38, 312} coverage, pylint | ||
|
||
[testenv] | ||
deps = | ||
deps = | ||
-r{toxinidir}/requirements/test.txt | ||
commands = | ||
commands = | ||
coverage run -p -m pytest {posargs:} | ||
|
||
[testenv:coverage] | ||
deps = | ||
deps = | ||
-r{toxinidir}/requirements/test.txt | ||
commands = | ||
commands = | ||
coverage combine | ||
coverage report -m | ||
coverage html | ||
|
||
[testenv:pylint] | ||
deps = | ||
deps = | ||
-r{toxinidir}/requirements/test.txt | ||
commands = | ||
commands = | ||
pylint edx_lint test setup.py | ||
|
||
[pytest] | ||
addopts = -rfe | ||
|
||
; Warnings that we don't want to see. | ||
; Why we use filterwarnings instead of PYTHONWARNINGS: | ||
; https://nedbatchelder.com/blog/201810/why_warnings_is_mysterious.html | ||
filterwarnings = | ||
; .tox/py27/lib/python2.7/site-packages/backports/configparser/__init__.py:1245: | ||
; DeprecationWarning: You passed a bytestring. Implicitly decoding as UTF-8 string. | ||
; This will not work on Python 3. Please switch to using Unicode strings across the board. | ||
filterwarnings = | ||
ignore:::backports | ||
|
||
; and a bunch of these... pytest is warning about its own deprecations? | ||
; .tox/py27/lib/python2.7/site-packages/_pytest/compat.py:329: | ||
; RemovedInPytest4Warning: usage of Session.Class is deprecated, please use pytest.Class instead | ||
|
||
ignore::pytest.PytestDeprecationWarning | ||
|
||
; .tox/py35/lib/python3.5/site-packages/astroid/builder.py:231: | ||
; PendingDeprecationWarning: generator 'wrapped' raised StopIteration | ||
|
||
ignore::PendingDeprecationWarning:astroid | ||
ignore::DeprecationWarning:astroid | ||
ignore::DeprecationWarning:pylint | ||
|