File: tox.ini

package info (click to toggle)
haproxy-log-analysis 6.0.0~a4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 396 kB
  • sloc: python: 2,200; makefile: 157; sh: 9
file content (66 lines) | stat: -rw-r--r-- 1,126 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[tox]
min_version = 4.4.0
envlist =
    format
    lint
    coverage
    py38
    py39
    py310
    py311
    py312
    pypy3

[gh-actions]
python =
    3.8: py38
    3.9: py39
    3.10: py310
    3.11: py311
    3.12: py312

[testenv]
description = run the distribution tests
use_develop = true
skip_install = false
constrain_package_deps = true
deps =
    -r requirements.txt
commands =
    pytest

[testenv:format]
description = automatically reformat code
skip_install = true
deps =
    pre-commit
commands =
    pre-commit run -a pyupgrade
    pre-commit run -a isort
    pre-commit run -a black

[testenv:lint]
description = run linters that will help improve the code style
skip_install = true
deps =
    pre-commit
commands =
    pre-commit run -a

[testenv:coverage]
description = get a test coverage report
use_develop = true
skip_install = false
deps =
    -r requirements.txt
commands =
    pytest --cov --cov-report term-missing

[testenv:generate-constrains]
description = update the constrains.txt file
basepython = python3.8
skip_install = true
deps =
    pip-tools
commands =
    pip-compile requirements.in