File: tox.ini

package info (click to toggle)
pytest-testinfra 10.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 676 kB
  • sloc: python: 4,951; makefile: 152; sh: 2
file content (55 lines) | stat: -rw-r--r-- 800 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
[tox]
minversion = 4.0.16
envlist=
  lint
  mypy
  py
  docs
  packaging

[testenv]
description = Runs unittests
extras =
  test
  typing
commands=
  pytest {posargs:-v -n 4 --cov testinfra --cov-report xml --cov-report term test}
usedevelop=True
passenv=
  HOME
  TRAVIS
  DOCKER_CERT_PATH
  DOCKER_HOST
  DOCKER_TLS_VERIFY
  WSL_DISTRO_NAME

[testenv:lint]
description = Performs linting tasks
skip_install = true
deps =
  pre-commit>=2.6.0
  ruff
commands=
  pre-commit run -a

[testenv:mypy]
description = Performs typing check
extras =
  typing
usedevelop=True
commands=
  mypy

[testenv:docs]
extras =
  doc
commands=
  sphinx-build -W -b html doc/source doc/build

[testenv:packaging]
description = Validate project packaging
skip_install = true
deps=
  build
commands=
  {envpython} -m build