File: tox.ini

package info (click to toggle)
python-statmake 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 364 kB
  • sloc: python: 1,107; makefile: 3
file content (29 lines) | stat: -rw-r--r-- 645 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
[tox]
isolated_build = true
envlist = lint, py3{7,8,9,10,11}-cov, htmlcov

[testenv]
whitelist_externals = poetry
commands =
    poetry install
    cov: poetry run coverage run --parallel-mode -m pytest {posargs}
    !cov: poetry run pytest {posargs}

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

[testenv:lint]
whitelist_externals = poetry
commands =
    poetry install --no-root
    poetry run black --check --diff src tests
    poetry run isort --check-only --diff src tests
    poetry run mypy src tests
    poetry run pylint src tests