-
Notifications
You must be signed in to change notification settings - Fork 82
/
tox.ini
98 lines (91 loc) · 3.31 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[flake8]
max-line-length=160
#
# The ones below are always used in runtime.
#
# E112 expected an indented block
# E115 expected an indented block (comment)
# E121 continuation line indentation is not a multiple of four
# E122 continuation line missing indentation or outdented
# E123 closing bracket does not match indentation of opening bracket's line
# E124 closing bracket does not match visual indentation
# E125 continuation line with same indent as next logical line
# E126 continuation line over-indented for hanging indent
# E127 continuation line over-indented for visual indent
# E128 continuation line under-indented for visual indent
# E129 visually indented line with same indent as next logical line
# E131 continuation line unaligned for hanging indent
# E221 multiple spaces before operator
# E225 missing whitespace around operator
# E226 missing whitespace around arithmetic operator
# E231 missing whitespace after ':'
# E241 multiple spaces after ':'
# E251 unexpected spaces around keyword / parameter equals
# E252 missing whitespace around parameter equals
# E261 at least two spaces before inline comment
# E302 expected 2 blank lines
# E305 expected 2 blank lines after class or function definition
# E502 the backslash is redundant between brackets
# E713 test for membership should be 'not in'
# E401 multiple imports on one line
# E402 module level import not at top of file
# F403 ‘from module import *’ used; unable to detect undefined names
# W291 trailing whitespace
# W293 blank line contains whitespace
ignore=E112, E115, E121, E122, E123, \
E124, E125, E126, E127, E128, \
E129, E131, E221, E225, E226, \
E231, E241, E251, E252, E261, \
E302, E305, E401, E402, E502, \
E713, F403, W291, W293
#
# These ones are only used on a case-by-case basis.
#
# E117 over-indented
# E222 multiple spaces after operator
# E272 multiple spaces before keyword
# E306 expected 1 blank line before a nested definition,
# E501 line too long
# E712 comparison to True should be 'if cond is True:' or 'if cond:'
# F401 '<name>.*' imported but unused
# F821 undefined name (used only in Cython code which flake8 cannot always process correctly)
# W605 invalid escape sequence
#
[testenv]
deps =
-rcode/tests/requirements.txt
pytest-cov
commands =
py.test -x --cov=pymqi --cov-config=.coveragerc
; flake8 code/pymqi code/tests
setenv =
PYMQI_TEST_QM_NAME = MQTEST
PYMQI_TEST_QM_HOST = localhost
PYMQI_TEST_QM_TRANSPORT = TCP
[testenv:local]
setenv =
PYMQI_TEST_QM_PORT = 8887
PYMQI_TEST_QM_CHANNEL = CH1
PYMQI_TEST_QM_USER =
PYMQI_TEST_QM_PASSWORD =
PYMQI_TEST_QM_APP_CHANNEL = APP1
PYMQI_TEST_QM_APP_USER =
PYMQI_TEST_QM_APP_PASSWORD =
PYMQI_TEST_QM_CONN_AUTH_SUPPORTED = 0
[testenv:docker]
# Environment for testing with
# Docker image ibmcom/mq used as MQ Server
setenv = PYMQI_TEST_QM_PORT = 8886
PYMQI_TEST_QM_CHANNEL = DEV.ADMIN.SVRCONN
PYMQI_TEST_QM_USER = admin
PYMQI_TEST_QM_PASSWORD = passw0rd
PYMQI_TEST_QM_APP_CHANNEL = DEV.APP.SVRCONN
PYMQI_TEST_QM_APP_USER=app
PYMQI_TEST_QM_APP_PASSWORD=passw0rd
PYMQI_TEST_QM_CONN_AUTH_USE_PW = REQUIRED
# Without HOME error AMQ6235E occurs
HOME = /home/runner
passenv =
PYMQI_TEST_TLS_SKIP
PYMQI_TEST_TLS_KEY_REPO_LOCATION_QMGR
PYMQI_TEST_TLS_KEY_REPO_LOCATION_CLIENT