File: tox.ini

package info (click to toggle)
python-dotenv 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 316 kB
  • sloc: python: 2,118; makefile: 52
file content (60 lines) | stat: -rw-r--r-- 1,255 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
56
57
58
59
60
[tox]
envlist = lint,py{39,310,311,312,313},pypy3,manifest,coverage-report

[gh-actions]
python =
    3.9: py39
    3.10: py310
    3.11: py311
    3.12: py312
    3.13: py313, lint, manifest
    3.14: py314
    pypy-3.9: pypy3

[testenv]
deps =
    pytest
    pytest-cov
    sh >= 2.0.2, <3
    click
    py{39,310,311,312,313,3.14,pypy3}: ipython
commands = pytest --cov --cov-report=term-missing {posargs}
depends =
    py{39,310,311,312,313,314},pypy3: coverage-clean
    coverage-report: py{39,310,311,312,313,314},pypy3

[testenv:lint]
skip_install = true
deps =
    ruff
    mypy
commands =
    ruff check src tests
    ruff format --check src tests
    mypy --python-version=3.14 src tests
    mypy --python-version=3.13 src tests
    mypy --python-version=3.12 src tests
    mypy --python-version=3.11 src tests
    mypy --python-version=3.10 src tests
    mypy --python-version=3.9 src tests

[testenv:format]
skip_install = true
deps = ruff
commands = ruff format src tests

[testenv:manifest]
deps = check-manifest
skip_install = true
commands = check-manifest

[testenv:coverage-clean]
deps = coverage
skip_install = true
commands = coverage erase

[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
    coverage report