third_party.pylibs.pylint.src/tox.ini
dependabot[bot] 2807fe756f
Update pre-commit requirement from ~=2.12 to ~=2.13 (#4495)
* Update pre-commit requirement from ~=2.12 to ~=2.13

Updates the requirements on [pre-commit](https://github.com/pre-commit/pre-commit) to permit the latest version.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v2.12.0...v2.13.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Update tox.ini

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-05-24 12:58:13 +02:00

86 lines
2.0 KiB
INI

[tox]
minversion = 2.4
envlist = formatting, py36, py37, py38, py39, py310, pypy, benchmark
skip_missing_interpreters = true
[testenv:pylint]
deps =
-r {toxinidir}/requirements_test_min.txt
pre-commit~=2.13
commands =
pre-commit run pylint --all-files
[testenv:formatting]
basepython = python3
deps =
-r {toxinidir}/requirements_test_min.txt
pre-commit~=2.13
commands =
pre-commit run --all-files
[testenv:mypy]
basepython = python3
deps =
pre-commit~=2.13
commands =
pre-commit run mypy --all-files
[testenv]
setenv =
COVERAGE_FILE = {toxinidir}/.coverage.{envname}
deps =
-r {toxinidir}/requirements_test.txt
commands =
; Run tests, ensuring all benchmark tests do not run
pytest --benchmark-disable {toxinidir}/tests/ {posargs:}
[testenv:spelling]
deps =
-r {toxinidir}/requirements_test.txt
commands =
pytest {toxinidir}/tests/ {posargs:} -k unittest_spelling
[testenv:coverage-html]
setenv =
COVERAGE_FILE = {toxinidir}/.coverage
deps =
-r {toxinidir}/requirements_test.txt
skip_install = true
commands =
coverage combine
coverage html --ignore-errors --rcfile={toxinidir}/.coveragerc
[testenv:docs]
changedir = doc/
deps =
-r {toxinidir}/doc/requirements.txt
commands =
sphinx-build -W -b html -d _build/doctrees . _build/html
[testenv:benchmark]
deps =
-r {toxinidir}/requirements_test.txt
pygal
commands =
; Run the only the benchmark tests, grouping output and forcing .json output so we
; can compare benchmark runs
pytest --exitfirst \
--failed-first \
--benchmark-only \
--benchmark-save=batch_files \
--benchmark-save-data \
--benchmark-autosave {toxinidir}/tests \
--benchmark-group-by="group" \
{posargs:}
[testenv:profile_against_external]
setenv =
PYTEST_PROFILE_EXTERNAL = 1
deps =
-r {toxinidir}/requirements_test.txt
gprof2dot
commands =
pytest --exitfirst \
--profile-svg \
{toxinidir}/tests/profile/test_profile_against_externals.py