File: tox.ini

package info (click to toggle)
python-srt 3.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 236 kB
  • sloc: python: 1,599; makefile: 13
file content (71 lines) | stat: -rw-r--r-- 1,248 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
[tox]
envlist = python

[testenv]
deps =
    -rtests/requirements.txt
commands =
    {basepython} --version
    pytest -vv -n auto
allowlist_externals =
    {basepython}
    pytest
setenv=
    release: HYPOTHESIS_PROFILE=release

[testenv:doctest]
deps =
    {[testenv]deps}
commands =
    pytest --doctest-modules

[testenv:coverage]
passenv =
    TRAVIS
    TRAVIS_JOB_ID
    TRAVIS_BRANCH
deps =
    {[testenv]deps}
    coverage
commands =
    coverage erase
    pytest -vv --cov=srt --cov-branch --cov-fail-under=100 --cov-report term-missing

[testenv:pylint]
skipsdist = True
deps =
    {[testenv]deps}
    pylint
commands =
    # C0330: https://github.com/psf/black/issues/1178
    # R0913: These are intentional design decisions, so leave them.
    # R0205, R1725, C0209: We still support py2.
    pylint --disable=C0330,R0913,R0205,R1725,C0209 srt.py

[testenv:black]
skipsdist = True
allowlist_externals = sh
deps =
    black
commands =
    black --check .
    sh -c 'exec black --check srt_tools/srt*'

[testenv:pytype]
skipsdist = True
deps =
    {[testenv]deps}
    pytype
commands =
    pytype .

[testenv:bandit]
skipsdist = True
deps =
    {[testenv]deps}
    bandit
commands =
    bandit srt.py

[testenv:pypy3]
basepython = pypy3