File: tox.ini

package info (click to toggle)
python-prefixed 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 200 kB
  • sloc: python: 972; makefile: 4
file content (99 lines) | stat: -rw-r--r-- 1,797 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[tox]
ignore_basepython_conflict = tRUE
envlist =
    lint
    copyright
    coverage
    docs
    PY3{9,8,7,6,5}
    py27
    pypy{27,39}

[testenv]
basepython = python3.10
usedevelop = True
deps =
    pypy27,py27: unittest2

commands =
    {envpython} -m unittest discover -s {toxinidir}/tests {posargs}

[testenv:flake8]
skip_install = True
deps =
    flake8

commands =
    flake8 prefixed setup.py setup_helpers.py tests

[testenv:pylint]
skip_install = True
ignore_errors=True
deps =
    pylint
    pyenchant

commands =
    pylint prefixed setup setup_helpers tests

[testenv:specialist]
basepython = python3.11
skip_install = True
ignore_errors=True
deps =
    specialist >= 0.2.1

# -h --output {toxinidir}\.specialist
commands =
    {envpython} -m specialist --output {toxinidir}/.specialist --targets prefixed/*.py -m unittest discover -s {toxinidir}/tests {posargs}

[testenv:copyright]
skip_install = True
ignore_errors = True

commands =
    {envpython} setup_helpers.py copyright

[testenv:lint]
skip_install = True
ignore_errors=True
deps =
    {[testenv:flake8]deps}
    {[testenv:pylint]deps}

commands =
    {[testenv:flake8]commands}
    {[testenv:pylint]commands}

[testenv:coverage]
deps =
    coverage

commands =
    coverage run -m unittest discover -s {toxinidir}/tests {posargs}
    coverage report

[testenv:codecov]
passenv =
    CI
    CODECOV_*
    GITHUB_*
deps =
    {[testenv:coverage]deps}
    codecov

commands =
    {[testenv:coverage]commands}
    codecov

[testenv:docs]
deps =
    sphinx
    sphinxcontrib-spelling
    sphinx_rtd_theme

commands=
    {envpython} setup_helpers.py spelling-clean
    sphinx-build -vWEa --keep-going -b spelling doc build/doc
    {envpython} setup_helpers.py spelling
    sphinx-build -vWEa --keep-going -b html doc build/doc