-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
220 lines (181 loc) · 4.24 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
[tox]
envlist = isort
skip_missing_interpreters = true
isolated_build = True
[testenv:bandit]
skipsdist = True
skip_install = True
deps =
tomte[bandit]==0.2.15
commands =
bandit -r operate -x */tests/*
bandit -s B101 -r tests scripts
[testenv:black]
skipsdist = True
skip_install = True
deps =
tomte[black]==0.2.15
commands =
black operate scripts tests
[testenv:black-check]
skipsdist = True
skip_install = True
deps =
tomte[black]==0.2.15
commands =
black --check operate scripts tests
[testenv:isort]
skipsdist = True
skip_install = True
deps =
tomte[isort]==0.2.15
commands =
isort operate/ scripts/ tests/
[testenv:isort-check]
skipsdist = True
skip_install = True
deps =
tomte[isort]==0.2.15
commands =
isort --check-only --gitignore operate/ scripts/ tests/
[testenv:flake8]
skipsdist = True
skip_install = True
deps =
tomte[flake8]==0.2.15
commands =
flake8 operate scripts tests
[testenv:mypy]
skipsdist = True
skip_install = True
deps =
tomte[mypy]==0.2.15
commands =
mypy operate/ tests/ scripts/ --disallow-untyped-defs --config-file tox.ini
[testenv:pylint]
whitelist_externals = /bin/sh
skipsdist = True
deps =
tomte[pylint]==0.2.15
commands =
pylint operate scripts -j 0 --rcfile=.pylintrc
[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:vulture]
skipsdist = True
skip_install = True
deps =
tomte[vulture]==0.2.15
commands =
vulture operate/services scripts/whitelist.py
[testenv:darglint]
skipsdist = True
skip_install = True
deps =
tomte[darglint]==0.2.15
commands =
darglint operate scripts tests
[testenv:check-copyright]
skipsdist = True
skip_install = True
deps =
commands =
{toxinidir}/scripts/check_copyright.py --check
[testenv:fix-copyright]
skipsdist = True
skip_install = True
deps =
commands =
{toxinidir}/scripts/check_copyright.py
[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
[darglint]
docstring_style=sphinx
strictness=short
ignore_regex=async_act
ignore=DAR401
[flake8]
paths=autonomy,packages,scripts,tests
exclude=.md,
*_pb2.py,
autonomy/__init__.py,
custom_types.py,
*_pb2_grpc.py,
packages/valory/connections/http_client,
packages/valory/connections/ledger,
packages/valory/connections/p2p_libp2p_client,
packages/valory/protocols/acn,
packages/valory/protocols/contract_api,
packages/valory/protocols/operate_http,
packages/valory/protocols/ledger_api
max-line-length = 88
select = B,C,D,E,F,I,W,
ignore = E203,E501,W503,D202,B014,D400,D401,DAR,B028,B017
application-import-names = autonomy,packages,tests,scripts
[isort]
# for black compatibility
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
ensure_newline_before_comments = True
line_length=88
# custom configurations
order_by_type=False
case_sensitive=True
lines_after_imports=2
skip =
skip_glob =
known_first_party=operate
known_local_folder=tests
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
[mypy]
strict_optional = True
[mypy-typing_extentions.*]
ignore_missing_imports = True
[mypy-requests.*]
ignore_missing_imports = True
[mypy-aea.*]
ignore_missing_imports = True
[mypy-aea_ledger_ethereum.*]
ignore_missing_imports = True
[mypy-dotenv.*]
ignore_missing_imports = True
[mypy-autonomy.*]
ignore_missing_imports = True
[mypy-hexbytes.*]
ignore_missing_imports = True
[mypy-starlette.*]
ignore_missing_imports = True
[mypy-aea_cli_ipfs.*]
ignore_missing_imports = True
[mypy-clea.*]
ignore_missing_imports = True
[mypy-uvicorn.*]
ignore_missing_imports = True
[mypy-fastapi.*]
ignore_missing_imports = True
[mypy-web3.*]
ignore_missing_imports = True
[mypy-docker.*]
ignore_missing_imports = True
[mypy-compose.*]
ignore_missing_imports = True
[mypy-flask.*]
ignore_missing_imports = True
[mypy-werkzeug.*]
ignore_missing_imports = True
[mypy-psutil.*]
ignore_missing_imports = True
[mypy-eth_utils.*]
ignore_missing_imports = True