File: tox.ini

package info (click to toggle)
python-url-matcher 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 372 kB
  • sloc: python: 627; makefile: 17
file content (53 lines) | stat: -rw-r--r-- 950 bytes parent folder | download | duplicates (3)
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
[tox]
envlist = min,py39,py310,py311,py312,py313,mypy,docs

[testenv]
deps =
    pytest
    pytest-cov

commands =
    py.test \
        --cov-report=term --cov-report=html --cov-report=xml --cov=url_matcher \
        --cov-report=term-missing --doctest-modules \
        {posargs:url_matcher tests}

[testenv:min]
basepython = python3.9
deps =
    {[testenv]deps}
    tldextract==1.2

[testenv:mypy]
deps =
    mypy==1.15.0
    pytest==8.3.3
commands =
    mypy --strict url_matcher tests

[docs]
changedir = docs
deps =
    -rdocs/requirements.txt

[testenv:docs]
basepython = python3
changedir = {[docs]changedir}
deps = {[docs]deps}
commands =
    sphinx-build -W -b html . {envtmpdir}/html

[testenv:pre-commit]
deps =
    pre-commit
commands =
    pre-commit run --all-files --show-diff-on-failure

[testenv:twinecheck]
basepython = python3
deps =
    twine==5.1.1
    build==1.2.2
commands =
    python -m build --sdist
    twine check dist/*