File: tox.ini

package info (click to toggle)
python-vttlib 0.10.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 248 kB
  • sloc: python: 1,113; makefile: 4; sh: 4
file content (37 lines) | stat: -rw-r--r-- 750 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
[tox]
envlist =  lint, py3{6,8}-cov, htmlcov

[testenv]
deps =
    -r requirements.txt
    -r requirements-dev.txt
commands =
    cov: coverage run --parallel-mode -m pytest {posargs}
    !cov: pytest {posargs}

[testenv:htmlcov]
basepython = python3
deps =
    coverage
skip_install = true
commands =
    coverage combine
    coverage report
    coverage html

[testenv:lint]
skip_install = true
deps =
    -r requirements.txt
    -r requirements-dev.txt
commands =
    black --check --diff .
    isort --check-only --diff --recursive src tests
    mypy src tests .
    flake8

[flake8]
select = C, E, F, W, B, B9
ignore = E203, E266, E501, W503
max-line-length = 80
exclude = .git, __pycache__, build, dist, .eggs, .tox, venv, venv*, .venv, .venv*