File: tox.ini

package info (click to toggle)
python-dlt 2.18.10.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 488 kB
  • sloc: python: 3,454; makefile: 56
file content (91 lines) | stat: -rw-r--r-- 1,600 bytes parent folder | download | duplicates (2)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[tox]
envlist = py3,flake8,black,lint,ruff,bandit,docs
output_dir={env:SPHINX_OUTPUT_DIR:{toxworkdir}/_build}
isolated_build = True
toxworkdir = {env:TOXWORKDIR:/tmp/tox}

[testenv]
deps =
    pytest
    pytest-cov
commands =
    pytest \
        --cov=dlt \
        --cov-branch \
        --cov-report=html \
        --cov-report=term-missing \
        {posargs:tests}

[pytest]
filterwarnings =
    error


[testenv:flake8]
basepython = python3
skip_install = true
deps =
    flake8
commands =
    flake8  --format=pylint --output-file=flake8.txt --max-line-length=119

[testenv:ruff]
basepython = python3
skip_install = true
deps =
    ruff==0.4.1
    mypy
commands =
    ruff check ./dlt ./tests

[testenv:black]
skip_install = True
skipsdist = True
deps =
    black
commands =
    black -l 119 --check --diff .

[testenv:lint]
basepython = python3
skip_install = true
deps =
    click
    pylint==3.2.7
commands =
    pylint . --output-format=json:pylint.json,colorized

[testenv:bandit]
basepython = python3
skip_install = true
deps =
    bandit
    bandit[toml]==1.7.4
commands =
    bandit -c pyproject.toml -r . -f json -o bandit.json --exit-zero

[testenv:dev]
basepython = python3
passenv = SOURCE_DATE_EPOCH
skip_install = True
skipsdist = True
deps =
    build
    twine
    wheel
commands =
    python -m build
    twine upload -r software-factory-pypi-dev dist/*

[testenv:release]
basepython = python3
passenv = SOURCE_DATE_EPOCH
skip_install = True
skipsdist = True
deps =
    build
    twine
    wheel
commands =
    python -m build
    twine upload -r software-factory-pypi dist/*