File: tox.ini

package info (click to toggle)
pytest-check 2.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 432 kB
  • sloc: python: 1,775; sh: 17; makefile: 6
file content (70 lines) | stat: -rw-r--r-- 1,355 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
[tox]
env_list =
    py39
    py310
    py311
    py312
    py313
    py314
    pytest_earliest
    coverage
    lint
    mypy
    mypy_earliest

skip_missing_interpreters = true

[testenv]
commands = pytest {posargs}
description = Run pytest
package = wheel
wheel_build_env = .pkg

[testenv:coverage]
deps = coverage
base_python = python3.13
commands =
    coverage run --source={envsitepackagesdir}/pytest_check,tests -m pytest
    coverage report --fail-under=100 --show-missing
description = Run pytest, with coverage

[testenv:pytest_earliest]
deps = pytest==7.0.0
base_python = python3.11
commands = pytest {posargs}
description = Run earliest supported pytest

[testenv:lint]
skip_install = true
deps = ruff
base_python = python3.13
commands = ruff check src tests examples
description = Run ruff over src, test, examples

[testenv:mypy]
deps =
    mypy
    # pluggy added type checking support in version 1.3.0
    pluggy>=1.3,<2
base_python = python3.13
commands =
    mypy --strict --pretty src
    mypy --pretty tests
description = Run mypy over src, test

[testenv:mypy_earliest]
deps =
    mypy
    pluggy>=1.3,<2
base_python = python3.9
commands = mypy --strict --pretty src
description = Run mypy over src for earliest supported python

[pytest]
addopts =
    --color=yes
    --strict-markers
    --strict-config
    -ra

testpaths = tests