forked from pierky/arouteserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
58 lines (51 loc) · 1.29 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
[tox]
envlist=py36-syntax, py36-flake8, py36, py36-coverage, py36-extres
[testenv]
commands=nosetests -vs -x --tests=tests/static/,tests/live_tests/
deps=nose
passenv=TRAVIS BUILD_ONLY
[testenv:py36-cli]
basepython=python3.6
whitelist_externals=bash
commands=bash ./tests/cli
[testenv:py36-extres]
basepython=python3.6
commands=nosetests -vs --tests=tests/external_resources/
deps=nose
[testenv:py36-syntax]
basepython=python3.6
whitelist_externals=bash
commands=bash -c "find pierky/ scripts/ tests/ -name "*.py" | xargs python -m py_compile"
deps=
[testenv:py36-flake8]
basepython=python3.6
deps=flake8
commands=flake8 pierky/ scripts/
[testenv:py36-coverage]
basepython=python3.6
setenv=BUILD_ONLY=1
commands=
coverage run --source=pierky --omit="pierky/arouteserver/tests/*" --branch setup.py nosetests --stop --verbosity=2 --tests=tests/static/,tests/live_tests/
coverage report -m
deps=
nose
coverage
[flake8]
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
ignore =
# Indentation, continuation line...
E12,
# Whitespace
E2,
# Blank line
E3,
# Line length
E5,
# Bare except
E722,
# F405: x may be undefined, or defined from star imports
F405,
# F403 'from .x import *' used; unable to detect undefined names
F403,
# W605 invalid escape sequence
W605