forked from rebase-helper/rebase-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
67 lines (59 loc) · 1.35 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
66
67
[tox]
envlist=py2,py3
[pytest]
addopts=-m 'standard and not integration and not long_running'
markers=
standard: mark a test as a standard test.
functional: mark a test as a functional test.
integration: mark a test as an integration test.
long_running: mark a test as a long running test.
testpaths=rebasehelper/tests
[pycodestyle]
show-source=True
show-pep8=True
statistics=True
count=True
max-line-length=120
format=pylint
exclude=docs/conf.py
[testenv]
recreate=True
setenv=LANG=C.UTF-8
passenv=
PYTEST_ADDOPTS
REQUESTS_CA_BUNDLE
commands=
py.test --verbose --color=yes \
{posargs:--cov rebasehelper --cov-report html --cov-report term}
deps=
-rtest-requirements.txt
[testenv:py2]
basepython=python2
[testenv:py3]
basepython=python3
commands=
{[lint]commands}
{[testenv]commands}
deps=
{[lint]deps}
{[testenv]deps}
[lint]
skip_install=True
commands=
pylint --rcfile=pylintrc \
--disable=C,R \
--disable=fixme \
--disable=locally-disabled \
rebasehelper
deps=
-rlint-requirements.txt
[testenv:lint-py2]
basepython=python2
skip_install={[lint]skip_install}
commands={[lint]commands} --disable=import-error
deps={[lint]deps}
[testenv:lint-py3]
basepython=python3
skip_install={[lint]skip_install}
commands={[lint]commands} --disable=import-error
deps={[lint]deps}