forked from twisted/towncrier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
65 lines (57 loc) · 1.24 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[tox]
envlist = cov-erase, flake8, {pypy27,pypy36,pypy37,py27,py35,py36,py37,py38,py39}-{tests,flake8,check-manifest,check-newsfragment}, cov-report
isolated_build=true
skip_missing_envs = true
[testenv:flake8]
skip_install = True
deps =
flake8
commands =
flake8 src/towncrier/
[testenv:check-newsfragment]
commands =
python -m towncrier.check
[testenv]
deps =
Twisted
coverage
incremental
mock
commands =
python -V
coverage --version
{envbindir}/trial --version
coverage erase
# `coverage run` tries to act like Python so we use `--module` instead of
# specifying the entry point script in `{envbindir}`.
coverage run -p --module twisted.trial {posargs:towncrier}
coverage combine -a
[testenv:build]
allowlist_externals =
bash
changedir = {envtmpdir}
deps =
build
check-manifest>=0.44
twine
setenv =
toxinidir={toxinidir}
skip_install = true
commands =
# could be brought inside tox.ini after https://github.com/tox-dev/tox/issues/1571
bash {toxinidir}/tox_build.sh
[testenv:cov-report]
deps =
coverage
skip_install = true
commands =
coverage html
coverage report
[testenv:cov-erase]
deps =
coverage
skip_install = true
commands =
coverage erase
[flake8]
max-line-length = 99