-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
51 lines (45 loc) · 842 Bytes
/
tox.ini
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
[tox]
envlist = py
[testenv]
deps =
-rtests/requirements.txt
commands =
{basepython} --version
pytest
setenv=
release: HYPOTHESIS_PROFILE=release
[testenv:doctest]
deps =
{[testenv]deps}
commands =
pytest --doctest-modules
[testenv:coverage]
passenv = CODECOV_TOKEN
deps =
{[testenv]deps}
codecov
commands =
pytest --cov=srt.srt --cov-branch --cov-fail-under=100 --cov-report xml
codecov -e CODECOV_TOKEN
[testenv:bandit]
skipsdist = True
deps =
{[testenv]deps}
bandit
commands =
bandit -r srt
[testenv:black]
skipsdist = True
whitelist_externals = sh
deps =
black
commands =
black --check .
[testenv:pylint]
skipsdist = True
deps =
{[testenv]deps}
pylint
commands =
# R0913: These are intentional design decisions from srt1.
pylint --disable=R0913 srt/srt.py