-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
69 lines (61 loc) · 1.28 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
68
69
[tox]
envlist = flake8, flake8-complexity, isort
minversion=1.8
[flake8]
max-line-length = 120
builtins = _,__request__
ignore =
E133
W503 # line break abefore binary operator
exclude = .tox,.git,dist,build,ifacewatch/lib,ifacewatch/include,install
[isort]
known_deluge = deluge
known_first_party = ifacewatch,ifcfg,pyiface
sections=FUTURE,STDLIB,THIRDPARTY,DELUGE,FIRSTPARTY,LOCALFOLDER
skip=ifacewatch/include
[testenv]
passenv = DISPLAY
setenv = PYTHONPATH = {env:PWD}:{env:PYTHONPATH}
sitepackages = True
deps =
twisted
service_identity
mako
chardet
pyopenssl
pyxdg
install_command = pip install {opts} {packages}
commands = {envpython} setup.py test
###########################
# Code style verification
###########################
[testenv:isort]
deps =
{[testenv]deps}
isort
whitelist_externals =
isort
commands = isort -c --stdout --diff
[testenv:flake8]
setenv = {[testenv]setenv}
whitelist_externals =
flake8
deps =
{[testenv]deps}
flake8
pep8-naming
commands =
flake8 --version
flake8
[testenv:flake8-complexity]
setenv = {[testenv]setenv}
whitelist_externals =
flake8
sh
deps =
{[testenv]deps}
flake8
mccabe
commands =
flake8 --version
flake8 --exit-zero --max-complexity 15 ifacewatch