File: tox.ini

package info (click to toggle)
python-queuelib 1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 168 kB
  • sloc: python: 1,046; sh: 8; makefile: 5
file content (44 lines) | stat: -rw-r--r-- 977 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py, pylint, typing, twinecheck, pre-commit

[testenv]
deps =
    pytest
    pytest-cov >= 7.0.0
commands =
    py.test --cov=queuelib --cov-report=xml --cov-report=term --cov-report=html {posargs:queuelib}

[testenv:pylint]
basepython = python3
deps =
    {[testenv]deps}
    pylint==4.0.4
commands =
    pylint {posargs:queuelib}

[testenv:typing]
basepython = python3
deps =
    mypy==1.19.1
    pytest==8.4.1
commands =
    mypy {posargs:queuelib}

[testenv:twinecheck]
basepython = python3
deps =
    twine==6.2.0
    build==1.4.0
commands =
    python -m build --sdist
    twine check dist/*

[testenv:pre-commit]
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
skip_install = true