forked from valory-xyz/mech-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
287 lines (240 loc) · 5.91 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
[tox]
envlist = bandit, safety, black, black-check, isort, isort-check, flake8, mypy, pylint, darglint
skip_missing_interpreters = true
isolated_build = True
[base-deps]
deps =
tomte[tests]==0.2.15
open-autonomy==0.14.10
[testenv:bandit]
skipsdist = True
skip_install = True
deps =
tomte[bandit]==0.2.15
commands =
bandit -s B101 -r mech_client/
[testenv:black]
skipsdist = True
skip_install = True
deps =
tomte[black]==0.2.15
commands = black mech_client/
[testenv:black-check]
skipsdist = True
skip_install = True
deps =
tomte[black]==0.2.15
commands = black --check mech_client/
[testenv:isort]
skipsdist = True
skip_install = True
deps =
tomte[isort]==0.2.15
commands =
isort mech_client/ --gitignore
[testenv:isort-check]
skipsdist = True
skip_install = True
deps =
tomte[isort]==0.2.15
commands = isort --check-only --gitignore mech_client/
[testenv:flake8]
skipsdist = True
skip_install = True
deps =
tomte[flake8]==0.2.15
commands =
flake8 mech_client/
[testenv:mypy]
skipsdist = True
skip_install = True
deps = mypy==1.4.0
commands =
mypy mech_client/ --disallow-untyped-defs --config-file tox.ini
[testenv:pylint]
whitelist_externals = /bin/sh
skipsdist = True
deps =
{[base-deps]deps}
tomte[pylint]==0.2.15
commands = pylint --ignore-patterns=".*_pb2.py" --ignore-paths="^packages/valory/.*$" --ignore-paths="mech_client/helpers/.*$" --disable=C0103,R0801,R0912,C0301,C0201,C0204,C0209,W1203,C0302,R1735,R1729,W0511,E0611,E1101 mech_client/
[testenv:safety]
skipsdist = True
skip_install = True
deps =
tomte[safety]==0.2.15
commands = safety check -i 37524 -i 38038 -i 37776 -i 38039 -i 39621 -i 40291 -i 39706 -i 41002 -i 51358 -i 51499 -i 67599 -i 70612
[testenv:darglint]
skipsdist = True
skip_install = True
deps =
tomte[darglint]==0.2.15
commands = darglint mech_client
[testenv:vulture]
skipsdist = True
skip_install = True
deps =
tomte[vulture]==0.2.15
commands =
vulture mech_client scripts/whitelist.py --exclude mech_client/helpers/
[testenv:spell-check]
whitelist_externals = mdspell
skipsdist = True
usedevelop = True
deps =
tomte[cli]==0.2.15
commands = tomte check-spelling
[flake8]
paths=mech_client
exclude=.md,
*_pb2.py,
*_pb2_grpc.py,
custom_types.py,
mech_client/helpers/
max-line-length = 88
select = B,C,D,E,F,I,W,
ignore = E203,E501,W503,D202,B014,D400,D401,DAR
application-import-names = packages,tests,scripts
[isort]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
ensure_newline_before_comments = True
line_length=88
order_by_type=False
case_sensitive=True
lines_after_imports=2
skip=
skip_glob =
known_first_party=autonomy
known_packages=packages
known_local_folder=tests
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,PACKAGES,LOCALFOLDER
[mypy]
python_version = 3.10
strict_optional = True
exclude=(.*_pb2|.*custom_types|mech_client/helpers/*|packages/*)
[mypy-aea.*]
ignore_missing_imports = True
[mypy-packages.open_aea.*]
ignore_errors=True
[mypy-google.*]
ignore_missing_imports = True
[mypy-multibase.*]
ignore_missing_imports = True
[mypy-multicodec.*]
ignore_missing_imports = True
[mypy-aea_cli_ipfs.*]
ignore_missing_imports = True
[mypy-gql.*]
ignore_missing_imports = True
[mypy-websocket.*]
ignore_missing_imports = True
[mypy-aea_ledger_ethereum.*]
ignore_missing_imports = True
[mypy-web3.*]
ignore_missing_imports = True
[mypy-click.*]
ignore_missing_imports = True
[mypy-requests.*]
ignore_missing_imports = True
[mypy-packages.*]
ignore_missing_imports = True
[mypy-autonomy.*]
ignore_missing_imports=True
[darglint]
docstring_style=sphinx
strictness=short
ignore_regex=async_act
ignore=DAR401
[testenv:liccheck]
skipsdist = True
usedevelop = True
deps =
tomte[liccheck,cli]==0.2.15
commands =
tomte freeze-dependencies --output-path {envtmpdir}/requirements.txt
liccheck -s tox.ini -r {envtmpdir}/requirements.txt -l PARANOID
[Authorized Packages]
blspy: 2.0.2
sniffio: ==1.3.1
aiohappyeyeballs: ==2.4.3
; has correct licence Apache 2.0 or MIT
; Authorized and unauthorized licenses in LOWER CASE
[Licenses]
authorized_licenses:
; aliases for MIT License
MIT
MIT license
https://opensource.org/licenses/MIT
License :: OSI Approved :: MIT
; aliases for BSD License (and variants)
BSD
BSD license
new BSD
(new) BSD
new BDS license
simplified BSD
3-Clause BSD
BSD-3-Clause
BSD 3-Clause
BSD-2-Clause
BSD-like
BSD-2-Clause or Apache-2.0
BSD, Public Domain
; Apache
Apache Software
; aliases for Apache License version 2.0
Apache 2.0
Apache-2.0
Apache License 2.0
Apache License, Version 2.0
Apache License Version 2.0
Apache2
ASL 2
; some packages use 'Apache Software' as license string,
; which is ambiguous. However, 'Apache Software'
; will likely match with 'Apache 2.0'
Apache Software
BSD, Public Domain, Apache
http://www.apache.org/licenses/LICENSE-2.0
; PSF (BSD-style)
Python Software Foundation
PSF
; other permissive licenses
Historical Permission Notice and Disclaimer (HPND)
HPND
ISC
BSD or Apache License, Version 2.0
Modified BSD
Expat
Public Domain
; TODO: Investigate alternatives
Mozilla Public License 2.0 (MPL 2.0)
GNU Lesser General Public License v2 or later (LGPLv2+)
The Unlicense (Unlicense)
unauthorized_licenses:
; aliases for MPL 2.0
MPL-2.0
MPL 2.0
; Section 8 of https://www.mozilla.org/en-US/MPL/2.0/Revision-FAQ/
MPL 1.1
MPL-1.1
; http://www.gnu.org/licenses/license-list.en.html#apache2
GPLv2
GPLv2+
; LGPL
LGPL
GNU Library or Lesser General Public License (LGPL)
; LGPLv2.1
LGPLv2.1
LGPLv2.1+
GNU Lesser General Public License v2 or later (LGPLv2+)
; LGPLv3
GNU Lesser General Public License v3 (LGPLv3)
LGPLv3
; GPL v3
GPL v3
GPLv3+
GNU General Public License v3 (GPLv3)