File: tox.ini

package info (click to toggle)
python-ttn-client 1.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 224 kB
  • sloc: python: 493; sh: 13; makefile: 4
file content (50 lines) | stat: -rw-r--r-- 960 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
[tox]
envlist = py311, py312, py313, lint, mypy, coverage
skip_missing_interpreters = True

[gh-actions]
python =
  3.11: py311
  3.12: py312
  3.13: py313, lint, mypy, coverage

[testenv]
commands =
  pytest {posargs}
deps =
  -rrequirements.txt
  -rrequirements_test.txt

[testenv:coverage]
description = generate coverage report
commands =
    pytest --timeout=30 --cov=tests --cov=ttn_client --cov-report=term-missing  --cov-report=xml --cov-report=html --cov-context=test --cov-fail-under=100 {posargs}

[coverage:paths]
source =
    src/
    .tox/*/lib/python*/site-packages/

[testenv:lint]
basepython = python3
ignore_errors = True
commands =
  black --check ./
  ruff check src scripts tests
  pylint src
deps =
  -rrequirements.txt
  -rrequirements_lint.txt
  -rrequirements_test.txt

[testenv:mypy]
basepython = python3
ignore_errors = True
commands =
  mypy src
deps =
  -rrequirements.txt
  -rrequirements_lint.txt

[flake8]
max-line-length = 120