Skip to content

Commit c90ebbf

Browse files
authored
Merge pull request #743 from netenglabs/more-libupd8-0.18
Library updates, fixes to new pylint etc.
2 parents ab927ff + 993f4e9 commit c90ebbf

File tree

13 files changed

+380
-447
lines changed

13 files changed

+380
-447
lines changed

.pylintrc

Lines changed: 0 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -103,98 +103,67 @@ enable =
103103
catching-non-exception,
104104
confusing-with-statement,
105105
continue-in-finally,
106-
cyclical-import,
107106
dangerous-default-value,
108-
dict-items-not-iterating,
109-
dict-keys-not-iterating,
110-
dict-values-not-iterating,
111107
duplicate-argument-name,
112108
duplicate-bases,
113109
duplicate-except,
114110
duplicate-key,
115-
eq-without-hash,
116-
exception-escape,
117-
exception-message-attribute,
118111
expression-not-assigned,
119-
filter-builtin-not-iterating,
120112
format-combined-specification,
121113
format-needs-mapping,
122114
function-redefined,
123115
global-variable-undefined,
124116
import-error,
125117
import-self,
126118
inconsistent-mro,
127-
indexing-exception,
128119
inherit-non-class,
129120
init-is-generator,
130121
invalid-all-object,
131-
invalid-encoded-data,
132122
invalid-format-index,
133123
invalid-length-returned,
134124
invalid-sequence-index,
135125
invalid-slice-index,
136126
invalid-slots-object,
137127
invalid-slots,
138-
invalid-str-codec,
139128
invalid-unary-operand-type,
140129
logging-too-few-args,
141130
logging-too-many-args,
142131
logging-unsupported-format,
143132
lost-exception,
144-
map-builtin-not-iterating,
145133
method-hidden,
146134
misplaced-bare-raise,
147135
misplaced-future,
148136
missing-format-argument-key,
149137
missing-format-attribute,
150138
missing-format-string-key,
151-
missing-super-argument,
152-
mixed-fomat-string,
153-
model-unicode-not-callable,
154139
no-member,
155140
no-method-argument,
156141
no-name-in-module,
157142
no-self-argument,
158143
no-value-for-parameter,
159144
non-iterator-returned,
160-
non-parent-method-called,
161145
nonexistent-operator,
162-
nonimplemented-raised,
163-
nonstandard-exception,
164146
not-a-mapping,
165147
not-an-iterable,
166148
not-callable,
167149
not-context-manager,
168150
not-in-loop,
169151
pointless-statement,
170152
pointless-string-statement,
171-
property-on-old-class,
172153
raising-bad-type,
173154
raising-non-exception,
174-
raising-string,
175-
range-builtin-not-iterating,
176155
redefined-builtin,
177-
redefined-in-handler,
178156
redefined-outer-name,
179-
redefined-variable-type,
180157
redundant-keyword-arg,
181-
relative-import,
182158
repeated-keyword,
183159
return-arg-in-generator,
184160
return-in-init,
185161
return-outside-function,
186162
signature-differs,
187-
slots-on-old-class,
188-
super-method-not-called,
189-
super-on-old-class,
190163
syntax-error,
191-
sys-max-int,
192-
test-inherits-tests,
193164
too-few-format-args,
194165
too-many-format-args,
195-
translation-of-non-string,
196166
truncated-format-string,
197-
unbalance-tuple-unpacking,
198167
undefined-all-variable,
199168
undefined-loop-variable,
200169
undefined-variable,
@@ -210,11 +179,8 @@ enable =
210179
used-before-assignment,
211180
using-constant-test,
212181
yield-outside-function,
213-
zip-builtin-not-iterating,
214182

215183
astroid-error,
216-
django-not-available-placeholder,
217-
django-not-available,
218184
fatal,
219185
method-check-failed,
220186
parse-error,
@@ -236,37 +202,27 @@ enable =
236202
bad-classmethod-argument,
237203
bad-mcs-classmethod-argument,
238204
bad-mcs-method-argument,
239-
bad-whitespace,
240205
bare-except,
241206
consider-iterating-dictionary,
242207
consider-using-enumerate,
243208
global-at-module-level,
244209
global-variable-not-assigned,
245-
literal-used-as-attribute,
246210
logging-format-interpolation,
247211
logging-not-lazy,
248-
metaclass-assignment,
249-
model-has-unicode,
250-
model-missing-unicode,
251-
model-no-explicit-unicode,
252212
multiple-imports,
253213
multiple-statements,
254214
no-classmethod-decorator,
255215
no-staticmethod-decorator,
256-
old-raise-syntax,
257-
old-style-class,
258216
redundant-unittest-assert,
259217
reimported,
260218
simplifiable-if-statement,
261-
simplifiable-range,
262219
singleton-comparison,
263220
unidiomatic-typecheck,
264221
unnecessary-lambda,
265222
unnecessary-pass,
266223
unnecessary-semicolon,
267224
unneeded-not,
268225
useless-else-on-loop,
269-
wrong-assert-type,
270226

271227
deprecated-method,
272228
deprecated-module,
@@ -280,7 +236,6 @@ enable =
280236
wrong-import-position,
281237

282238
missing-final-newline,
283-
mixed-indentation,
284239
mixed-line-endings,
285240
trailing-newlines,
286241
trailing-whitespace,
@@ -292,23 +247,6 @@ enable =
292247
unrecognized-inline-option,
293248
useless-suppression,
294249

295-
cmp-method,
296-
coerce-method,
297-
delslice-method,
298-
dict-iter-method,
299-
dict-view-method,
300-
div-method,
301-
getslice-method,
302-
hex-method,
303-
idiv-method,
304-
next-method-called,
305-
next-method-defined,
306-
nonzero-method,
307-
oct-method,
308-
rdiv-method,
309-
setslice-method,
310-
using-cmp-argument,
311-
312250
# Disable the message, report, category or checker with the given id(s). You
313251
# can either give multiple identifiers separated by comma (,) or put this
314252
# option multiple times (only on the command line, not in the configuration
@@ -319,7 +257,6 @@ enable =
319257
# no Warning level messages displayed, use "--disable=all --enable=classes
320258
# --disable=W".
321259
disable =
322-
bad-continuation,
323260
bad-indentation,
324261
consider-using-f-string,
325262
duplicate-code,
@@ -328,13 +265,8 @@ disable =
328265
global-statement,
329266
invalid-name,
330267
locally-disabled,
331-
locally-enabled,
332-
lowercase-l-suffix,
333-
misplaced-comparison-constant,
334268
missing-module-docstring,
335269
no-else-return,
336-
no-init,
337-
no-self-use,
338270
suppressed-message,
339271
too-few-public-methods,
340272
too-many-ancestors,
@@ -351,52 +283,13 @@ disable =
351283
unused-wildcard-import,
352284
use-maxsplit-arg,
353285

354-
feature-toggle-needs-doc,
355-
illegal-waffle-usage,
356286
superfluous-parens,
357287
cell-var-from-loop,
358288

359-
apply-builtin,
360-
backtick,
361-
bad-python3-import,
362-
basestring-builtin,
363289
broad-except,
364-
buffer-builtin,
365-
cmp-builtin,
366-
coerce-builtin,
367-
deprecated-itertools-function,
368-
deprecated-operator-function,
369-
deprecated-str-translate-call,
370-
deprecated-string-function,
371-
deprecated-sys-function,
372-
deprecated-types-field,
373-
deprecated-urllib-function,
374-
execfile-builtin,
375-
file-builtin,
376-
import-star-module-level,
377-
input-builtin,
378-
intern-builtin,
379-
long-builtin,
380-
long-suffix,
381-
no-absolute-import,
382-
non-ascii-bytes-literal,
383-
old-division,
384-
old-ne-operator,
385-
old-octal-literal,
386-
parameter-unpacking,
387-
print-statement,
388290
protected-access,
389-
raw_input-builtin,
390291
raise-missing-from,
391-
reduce-builtin,
392-
reload-builtin,
393-
round-builtin,
394-
standarderror-builtin,
395292
super-init-not-called,
396-
unichr-builtin,
397-
unicode-builtin,
398-
unpacking-in-except,
399-
xrange-builtin,
400293

401294
logging-fstring-interpolation,
402295
c-extension-no-member,

Dockerfile-sqbase

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ENV PYTHONPATH=/root/.local/lib
66
COPY build/requirements.txt /tmp/requirements.txt
77

88
RUN apt-get update && \
9+
apt-get install -y vim-tiny ssh traceroute iputils-ping && \
910
python -m pip install --upgrade --no-cache-dir pip && \
1011
python -m pip install --disable-pip-version-check --no-cache-dir -r /tmp/requirements.txt && \
1112
apt-get clean && \

0 commit comments

Comments
 (0)