11[tox]
2- envlist = py39,lint, lint-cython, lint-types, black, docs
3- minversion = 3.2.1
2+ requires = tox>=4
3+ envlist = lint, lint-cython, lint-types, black, docs, py3{9,10,11,12,13}
44isolated_build = true
55
66[testenv]
7+ description =
8+ Run tests under {basepython}
9+ cov: with coverage
10+
711setenv =
812 cov: CYTHON_TEST_MACROS =1
913
@@ -26,51 +30,47 @@ commands =
2630
2731commands_cov = {basepython} -m pytest -v --timeout =30 --cov --cov-report =term --cov-fail-under =100 --cov-append --junitxml ={toxworkdir}/{envname}_integration.xml --cov-report =xml:{toxworkdir}/coverage.xml
2832
29- description =
30- Run tests under {basepython}
31- cov: with coverage
32-
3333[testenv:.package]
3434description = Isolated build environment
35- basepython = python3.9
35+ basepython = python3.13
3636
37- [testenv:py39 -cov]
37+ [testenv:py313 -cov]
3838usedevelop = True
3939commands = {[testenv]commands_cov}
4040deps = -rrequirements-test-coverage.txt
4141
4242[testenv:lint]
4343description = Run lint checker on Python files
44- basepython = python3.9
44+ basepython = python3.13
4545deps = flake8
4646skip_install = true
4747commands = {basepython} -m flake8 --config ={toxinidir}/.flake8 src
4848
4949[testenv:lint-cython]
5050description = Run lint checker on Cython files
51- basepython = python3.9
51+ basepython = python3.13
5252deps = flake8
5353skip_install = true
5454commands = {basepython} -m flake8 --config ={toxinidir}/.flake8.cython src
5555
5656
5757[testenv:lint-types]
5858description = Run mypy checker on examples
59- basepython = python3.9
59+ basepython = python3.13
6060deps =
6161 mypy
62- commands = {basepython} -m mypy --strict examples
62+ commands = {basepython} -m mypy --strict {posargs:src/blazingmq examples}
6363
6464[testenv:black]
6565description = Check that python files are formatted with black
66- basepython = python3.9
66+ basepython = python3.13
6767deps = black
6868skip_install = true
6969commands = {basepython} -m black --check --verbose src tests
7070
7171[testenv:docs]
7272description = Generate library documentation
73- basepython = python3.9
73+ basepython = python3.13
7474deps = -rrequirements-lint-docs.txt
7575commands = make -C docs html
7676 {basepython} -c ' print("documentation available under file://{toxworkdir}/docs_out/index.html")'
0 commit comments