summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-02-08 22:45:44 +0100
committerGitHub <noreply@github.com>2023-02-08 21:45:44 +0000
commit5c9115308d3defeceeeeab9b1fc0de2bdb5af6f9 (patch)
tree2d562b653244a3ded3bd8484db6ef65889853bd2 /tox.ini
parent844d5459ad018abde0a1db54109f8f99fc19cf86 (diff)
downloadastroid-git-5c9115308d3defeceeeeab9b1fc0de2bdb5af6f9.tar.gz
Clean-up and fix tox's commands (#1963)
* [tox] Add python 3.11 to the list of interpreters Refs #1960 * Update build system dependencies * Update pre-commit requirements * Fix Sphinx errors --------- Co-authored-by: Avram Lubkin <aviso@rockhopper.net>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini54
1 files changed, 4 insertions, 50 deletions
diff --git a/tox.ini b/tox.ini
index 6f77def4..4729e48a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,67 +1,21 @@
[tox]
-envlist = py{37,38,39,310}
+envlist = py{37,38,39,310,311}
skip_missing_interpreters = true
isolated_build = true
-[testenv:pylint]
-deps =
- # We do not use the latest pylint version in CI tests as we want to choose when
- # we fix the warnings
- git+https://github.com/pycqa/pylint@main
- pre-commit~=2.13
- -r requirements_test_min.txt
-commands = pre-commit run pylint --all-files
-
[testenv]
deps =
- -r requirements_test_min.txt
+ -r requirements_test.txt
-r requirements_test_brain.txt
- coverage<5
-
-setenv =
- COVERAGE_FILE = {toxinidir}/.coverage.{envname}
-
commands =
- ; --pyargs is needed so the directory astroid doesn't shadow the tox
- ; installed astroid package
- ; This is important for tests' test data which create files
- ; inside the package
- python -Wi {envsitepackagesdir}/coverage run -m pytest --pyargs {posargs:tests}
+ pytest --cov {posargs}
[testenv:formatting]
-basepython = python3
deps =
- pytest
- git+https://github.com/pycqa/pylint@main
- pre-commit~=2.13
+ -r requirements_test_pre_commit.txt
commands =
pre-commit run --all-files
-[testenv:coveralls]
-setenv =
- COVERAGE_FILE = {toxinidir}/.coverage
-passenv =
- *
-deps =
- coverage<5
- coveralls
-skip_install = true
-commands =
- python {envsitepackagesdir}/coverage combine --append
- python {envsitepackagesdir}/coverage report --rcfile={toxinidir}/.coveragerc -m
- - coveralls --rcfile={toxinidir}/.coveragerc
-changedir = {toxinidir}
-
-[testenv:coverage-erase]
-setenv =
- COVERAGE_FILE = {toxinidir}/.coverage
-deps =
- coverage<5
-skip_install = true
-commands =
- python {envsitepackagesdir}/coverage erase
-changedir = {toxinidir}
-
[testenv:docs]
skipsdist = True
usedevelop = True