File: tox.ini

package info (click to toggle)
python-podman 5.4.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,140 kB
  • sloc: python: 7,532; makefile: 82; sh: 75
file content (42 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (3)
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
[tox]
minversion = 3.2.0
envlist = coverage,py39,py310,py311,py312,py313
ignore_basepython_conflict = true

[testenv]
basepython = python3
usedevelop = True
deps = .[test]
commands = pytest {posargs}
setenv =
    PODMAN_LOG_LEVEL = {env:PODMAN_LOG_LEVEL:INFO}
    PODMAN_BINARY = {env:PODMAN_BINARY:podman}
    DEBUG = {env:DEBUG:0}

[testenv:venv]
commands = {posargs}

[testenv:lint]
deps = ruff==0.8.1
allowlist_externals = ruff
commands = ruff check --diff

# TODO: add pylint as alias of lint for compatibility

[testenv:coverage]
commands =
    coverage run -m pytest
    coverage report -m --skip-covered --fail-under=80 --omit=podman/tests/* --omit=.tox/*

[testenv:format]
deps = ruff==0.8.1
allowlist_externals = ruff
commands =
    ruff format --diff

# TODO: add black as alias of format for compatibility

[testenv:black-format]
deps = black
commands =
    black {posargs} .