File: tox.ini

package info (click to toggle)
pass-git-helper 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 616 kB
  • sloc: python: 693; makefile: 2
file content (46 lines) | stat: -rw-r--r-- 1,042 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
45
46
[tox]
envlist = coverage-clean,test-py{310,311,312,313}, check, coverage

[testenv]
extras = test
setenv =
    COVERAGE_FILE = ./.coverage.{envname}
commands =
    {envbindir}/python -V
    {envbindir}/pytest --cov {posargs}
    {envbindir}/coverage report
depends = coverage-clean

[testenv:coverage-clean]
deps = coverage
skip_install = true
commands = coverage erase
depends =

[testenv:coverage]
depends = test-py{39,310,311,312,313}
deps =
    coverage
skip_install = true
setenv =
commands =
    - coverage combine
    {envbindir}/coverage html
    {envbindir}/coverage report

[testenv:check]
deps =
    -rrequirements-check.txt
commands =
    {envbindir}/python -V
    {envbindir}/ruff check passgithelper.py test_passgithelper.py
    {envbindir}/isort --check passgithelper.py test_passgithelper.py
    {envbindir}/black --check passgithelper.py test_passgithelper.py
    {envbindir}/mypy passgithelper.py

[gh-actions]
python =
    3.10: py310, coverage
    3.11: py311, coverage
    3.12: py312, coverage
    3.13: py313, coverage