forked from kivy/python-for-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (40 loc) · 1.08 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
[tox]
envlist = pep8,py3
basepython = python3
[testenv]
deps =
pytest
py3: coveralls
# posargs will be replaced by the tox args, so you can override pytest
# args e.g. `tox -- tests/test_graph.py`
commands = pytest {posargs:tests/}
passenv = GITHUB_*
setenv =
PYTHONPATH={toxinidir}
SKIP_PREREQUISITES_CHECK=1
[testenv:py3]
# for py3 env we will get code coverage
commands =
coverage run --branch --source=pythonforandroid -m pytest {posargs:tests/}
coverage report -m
[testenv:pep8]
deps = flake8
commands = flake8 pythonforandroid/ tests/ ci/ setup.py
[flake8]
ignore =
# Closing bracket does not match indentation of opening bracket's line
E123,
# Closing bracket does not match visual indentation
E124,
# Continuation line over-indented for hanging indent
E126,
# Missing whitespace around arithmetic operator
E226,
# Module level import not at top of file
E402,
# Line too long (82 > 79 characters)
E501,
# Line break occurred before a binary operator
W503,
# Line break occurred after a binary operator
W504