Update to newest edx-lint
Copy existing pylintrc changes to pylintrc_tweaks
This commit is contained in:
468
pylintrc
468
pylintrc
@@ -67,279 +67,269 @@
|
||||
# SERIOUSLY.
|
||||
#
|
||||
# ------------------------------
|
||||
# Generated by edx-lint version: 4.0.1
|
||||
# ------------------------------
|
||||
[MASTER]
|
||||
ignore = ,.git,.tox,migrations,node_modules,.pycharm_helpers
|
||||
persistent = yes
|
||||
load-plugins = edx_lint.pylint,pylint_django,pylint_celery
|
||||
|
||||
[MESSAGES CONTROL]
|
||||
enable =
|
||||
enable =
|
||||
blacklisted-name,
|
||||
line-too-long,
|
||||
|
||||
syntax-error,
|
||||
init-is-generator,
|
||||
return-in-init,
|
||||
function-redefined,
|
||||
not-in-loop,
|
||||
return-outside-function,
|
||||
yield-outside-function,
|
||||
return-arg-in-generator,
|
||||
nonexistent-operator,
|
||||
duplicate-argument-name,
|
||||
|
||||
abstract-class-instantiated,
|
||||
bad-reversed-sequence,
|
||||
continue-in-finally,
|
||||
method-hidden,
|
||||
access-member-before-definition,
|
||||
no-method-argument,
|
||||
no-self-argument,
|
||||
invalid-slots-object,
|
||||
assigning-non-slot,
|
||||
invalid-slots,
|
||||
inherit-non-class,
|
||||
inconsistent-mro,
|
||||
duplicate-bases,
|
||||
non-iterator-returned,
|
||||
unexpected-special-method-signature,
|
||||
invalid-length-returned,
|
||||
import-error,
|
||||
used-before-assignment,
|
||||
undefined-variable,
|
||||
undefined-all-variable,
|
||||
invalid-all-object,
|
||||
no-name-in-module,
|
||||
unbalance-tuple-unpacking,
|
||||
unpacking-non-sequence,
|
||||
bad-except-order,
|
||||
raising-bad-type,
|
||||
misplaced-bare-raise,
|
||||
raising-non-exception,
|
||||
nonimplemented-raised,
|
||||
catching-non-exception,
|
||||
slots-on-old-class,
|
||||
super-on-old-class,
|
||||
bad-super-call,
|
||||
missing-super-argument,
|
||||
no-member,
|
||||
not-callable,
|
||||
assignment-from-no-return,
|
||||
no-value-for-parameter,
|
||||
too-many-function-args,
|
||||
unexpected-keyword-arg,
|
||||
redundant-keyword-arg,
|
||||
invalid-sequence-index,
|
||||
invalid-slice-index,
|
||||
assignment-from-none,
|
||||
not-context-manager,
|
||||
invalid-unary-operand-type,
|
||||
unsupported-binary-operation,
|
||||
repeated-keyword,
|
||||
not-an-iterable,
|
||||
not-a-mapping,
|
||||
unsupported-membership-test,
|
||||
unsubscriptable-object,
|
||||
logging-unsupported-format,
|
||||
logging-too-many-args,
|
||||
logging-too-few-args,
|
||||
bad-format-character,
|
||||
truncated-format-string,
|
||||
mixed-fomat-string,
|
||||
format-needs-mapping,
|
||||
missing-format-string-key,
|
||||
too-many-format-args,
|
||||
too-few-format-args,
|
||||
bad-str-strip-call,
|
||||
model-unicode-not-callable,
|
||||
super-method-not-called,
|
||||
non-parent-method-called,
|
||||
test-inherits-tests,
|
||||
translation-of-non-string,
|
||||
redefined-variable-type,
|
||||
cyclical-import,
|
||||
unreachable,
|
||||
dangerous-default-value,
|
||||
pointless-statement,
|
||||
pointless-string-statement,
|
||||
expression-not-assigned,
|
||||
duplicate-key,
|
||||
confusing-with-statement,
|
||||
using-constant-test,
|
||||
lost-exception,
|
||||
assert-on-tuple,
|
||||
attribute-defined-outside-init,
|
||||
bad-staticmethod-argument,
|
||||
arguments-differ,
|
||||
signature-differs,
|
||||
abstract-method,
|
||||
super-init-not-called,
|
||||
relative-import,
|
||||
import-self,
|
||||
misplaced-future,
|
||||
invalid-encoded-data,
|
||||
global-variable-undefined,
|
||||
redefined-outer-name,
|
||||
redefined-builtin,
|
||||
redefined-in-handler,
|
||||
undefined-loop-variable,
|
||||
cell-var-from-loop,
|
||||
duplicate-except,
|
||||
nonstandard-exception,
|
||||
binary-op-exception,
|
||||
property-on-old-class,
|
||||
bad-format-string-key,
|
||||
unused-format-string-key,
|
||||
bad-format-string,
|
||||
missing-format-argument-key,
|
||||
unused-format-string-argument,
|
||||
format-combined-specification,
|
||||
missing-format-attribute,
|
||||
invalid-format-index,
|
||||
access-member-before-definition,
|
||||
anomalous-backslash-in-string,
|
||||
anomalous-unicode-escape-in-string,
|
||||
arguments-differ,
|
||||
assert-on-tuple,
|
||||
assigning-non-slot,
|
||||
assignment-from-no-return,
|
||||
assignment-from-none,
|
||||
attribute-defined-outside-init,
|
||||
bad-except-order,
|
||||
bad-format-character,
|
||||
bad-format-string-key,
|
||||
bad-format-string,
|
||||
bad-open-mode,
|
||||
bad-reversed-sequence,
|
||||
bad-staticmethod-argument,
|
||||
bad-str-strip-call,
|
||||
bad-super-call,
|
||||
binary-op-exception,
|
||||
boolean-datetime,
|
||||
|
||||
fatal,
|
||||
catching-non-exception,
|
||||
cell-var-from-loop,
|
||||
confusing-with-statement,
|
||||
continue-in-finally,
|
||||
cyclical-import,
|
||||
dangerous-default-value,
|
||||
dict-items-not-iterating,
|
||||
dict-keys-not-iterating,
|
||||
dict-values-not-iterating,
|
||||
duplicate-argument-name,
|
||||
duplicate-bases,
|
||||
duplicate-except,
|
||||
duplicate-key,
|
||||
eq-without-hash,
|
||||
exception-escape,
|
||||
exception-message-attribute,
|
||||
expression-not-assigned,
|
||||
filter-builtin-not-iterating,
|
||||
format-combined-specification,
|
||||
format-needs-mapping,
|
||||
function-redefined,
|
||||
global-variable-undefined,
|
||||
import-error,
|
||||
import-self,
|
||||
inconsistent-mro,
|
||||
indexing-exception,
|
||||
inherit-non-class,
|
||||
init-is-generator,
|
||||
invalid-all-object,
|
||||
invalid-encoded-data,
|
||||
invalid-format-index,
|
||||
invalid-length-returned,
|
||||
invalid-sequence-index,
|
||||
invalid-slice-index,
|
||||
invalid-slots-object,
|
||||
invalid-slots,
|
||||
invalid-str-codec,
|
||||
invalid-unary-operand-type,
|
||||
logging-too-few-args,
|
||||
logging-too-many-args,
|
||||
logging-unsupported-format,
|
||||
lost-exception,
|
||||
map-builtin-not-iterating,
|
||||
method-hidden,
|
||||
misplaced-bare-raise,
|
||||
misplaced-future,
|
||||
missing-format-argument-key,
|
||||
missing-format-attribute,
|
||||
missing-format-string-key,
|
||||
missing-super-argument,
|
||||
mixed-fomat-string,
|
||||
model-unicode-not-callable,
|
||||
no-member,
|
||||
no-method-argument,
|
||||
no-name-in-module,
|
||||
no-self-argument,
|
||||
no-value-for-parameter,
|
||||
non-iterator-returned,
|
||||
non-parent-method-called,
|
||||
nonexistent-operator,
|
||||
nonimplemented-raised,
|
||||
nonstandard-exception,
|
||||
not-a-mapping,
|
||||
not-an-iterable,
|
||||
not-callable,
|
||||
not-context-manager,
|
||||
not-in-loop,
|
||||
pointless-statement,
|
||||
pointless-string-statement,
|
||||
property-on-old-class,
|
||||
raising-bad-type,
|
||||
raising-non-exception,
|
||||
raising-string,
|
||||
range-builtin-not-iterating,
|
||||
redefined-builtin,
|
||||
redefined-in-handler,
|
||||
redefined-outer-name,
|
||||
redefined-variable-type,
|
||||
redundant-keyword-arg,
|
||||
relative-import,
|
||||
repeated-keyword,
|
||||
return-arg-in-generator,
|
||||
return-in-init,
|
||||
return-outside-function,
|
||||
signature-differs,
|
||||
slots-on-old-class,
|
||||
super-init-not-called,
|
||||
super-method-not-called,
|
||||
super-on-old-class,
|
||||
syntax-error,
|
||||
sys-max-int,
|
||||
test-inherits-tests,
|
||||
too-few-format-args,
|
||||
too-many-format-args,
|
||||
too-many-function-args,
|
||||
translation-of-non-string,
|
||||
truncated-format-string,
|
||||
unbalance-tuple-unpacking,
|
||||
undefined-all-variable,
|
||||
undefined-loop-variable,
|
||||
undefined-variable,
|
||||
unexpected-keyword-arg,
|
||||
unexpected-special-method-signature,
|
||||
unpacking-non-sequence,
|
||||
unreachable,
|
||||
unsubscriptable-object,
|
||||
unsupported-binary-operation,
|
||||
unsupported-membership-test,
|
||||
unused-format-string-argument,
|
||||
unused-format-string-key,
|
||||
used-before-assignment,
|
||||
using-constant-test,
|
||||
yield-outside-function,
|
||||
zip-builtin-not-iterating,
|
||||
|
||||
astroid-error,
|
||||
parse-error,
|
||||
method-check-failed,
|
||||
django-not-available,
|
||||
raw-checker-failed,
|
||||
django-not-available-placeholder,
|
||||
|
||||
django-not-available,
|
||||
fatal,
|
||||
method-check-failed,
|
||||
parse-error,
|
||||
raw-checker-failed,
|
||||
|
||||
empty-docstring,
|
||||
invalid-characters-in-docstring,
|
||||
missing-docstring,
|
||||
wrong-spelling-in-comment,
|
||||
wrong-spelling-in-docstring,
|
||||
|
||||
|
||||
unused-argument,
|
||||
unused-import,
|
||||
unused-variable,
|
||||
unused-argument,
|
||||
|
||||
exec-used,
|
||||
|
||||
eval-used,
|
||||
|
||||
exec-used,
|
||||
|
||||
bad-classmethod-argument,
|
||||
bad-mcs-classmethod-argument,
|
||||
bad-mcs-method-argument,
|
||||
bad-whitespace,
|
||||
bare-except,
|
||||
broad-except,
|
||||
consider-iterating-dictionary,
|
||||
consider-using-enumerate,
|
||||
global-at-module-level,
|
||||
global-variable-not-assigned,
|
||||
literal-used-as-attribute,
|
||||
logging-format-interpolation,
|
||||
logging-not-lazy,
|
||||
metaclass-assignment,
|
||||
model-has-unicode,
|
||||
model-missing-unicode,
|
||||
model-no-explicit-unicode,
|
||||
multiple-imports,
|
||||
multiple-statements,
|
||||
no-classmethod-decorator,
|
||||
no-staticmethod-decorator,
|
||||
old-raise-syntax,
|
||||
old-style-class,
|
||||
protected-access,
|
||||
redundant-unittest-assert,
|
||||
reimported,
|
||||
simplifiable-if-statement,
|
||||
simplifiable-range,
|
||||
singleton-comparison,
|
||||
superfluous-parens,
|
||||
unidiomatic-typecheck,
|
||||
unneeded-not,
|
||||
wrong-assert-type,
|
||||
simplifiable-if-statement,
|
||||
no-classmethod-decorator,
|
||||
no-staticmethod-decorator,
|
||||
unnecessary-pass,
|
||||
unnecessary-lambda,
|
||||
useless-else-on-loop,
|
||||
unnecessary-pass,
|
||||
unnecessary-semicolon,
|
||||
reimported,
|
||||
global-variable-not-assigned,
|
||||
global-at-module-level,
|
||||
bare-except,
|
||||
broad-except,
|
||||
logging-not-lazy,
|
||||
redundant-unittest-assert,
|
||||
model-missing-unicode,
|
||||
model-has-unicode,
|
||||
model-no-explicit-unicode,
|
||||
protected-access,
|
||||
|
||||
deprecated-module,
|
||||
unneeded-not,
|
||||
useless-else-on-loop,
|
||||
wrong-assert-type,
|
||||
|
||||
deprecated-method,
|
||||
|
||||
deprecated-module,
|
||||
|
||||
too-many-boolean-expressions,
|
||||
too-many-nested-blocks,
|
||||
too-many-statements,
|
||||
too-many-boolean-expressions,
|
||||
|
||||
|
||||
wildcard-import,
|
||||
wrong-import-order,
|
||||
wrong-import-position,
|
||||
wildcard-import,
|
||||
|
||||
|
||||
missing-final-newline,
|
||||
mixed-indentation,
|
||||
mixed-line-endings,
|
||||
trailing-newlines,
|
||||
trailing-whitespace,
|
||||
unexpected-line-ending-format,
|
||||
mixed-indentation,
|
||||
|
||||
bad-option-value,
|
||||
unrecognized-inline-option,
|
||||
|
||||
bad-inline-option,
|
||||
bad-option-value,
|
||||
deprecated-pragma,
|
||||
disable =
|
||||
bad-continuation,
|
||||
invalid-name,
|
||||
misplaced-comparison-constant,
|
||||
file-ignored,
|
||||
bad-indentation,
|
||||
lowercase-l-suffix,
|
||||
unused-wildcard-import,
|
||||
global-statement,
|
||||
no-else-return,
|
||||
|
||||
apply-builtin,
|
||||
backtick,
|
||||
basestring-builtin,
|
||||
buffer-builtin,
|
||||
cmp-builtin,
|
||||
unrecognized-inline-option,
|
||||
useless-suppression,
|
||||
|
||||
cmp-method,
|
||||
coerce-builtin,
|
||||
coerce-method,
|
||||
delslice-method,
|
||||
dict-iter-method,
|
||||
dict-view-method,
|
||||
duplicate-code,
|
||||
execfile-builtin,
|
||||
feature-toggle-needs-doc,
|
||||
file-builtin,
|
||||
filter-builtin-not-iterating,
|
||||
fixme,
|
||||
div-method,
|
||||
getslice-method,
|
||||
hex-method,
|
||||
illegal-waffle-usage,
|
||||
import-star-module-level,
|
||||
indexing-exception,
|
||||
input-builtin,
|
||||
intern-builtin,
|
||||
locally-disabled,
|
||||
locally-enabled,
|
||||
logging-format-interpolation,
|
||||
long-builtin,
|
||||
long-suffix,
|
||||
map-builtin-not-iterating,
|
||||
metaclass-assignment,
|
||||
idiv-method,
|
||||
next-method-called,
|
||||
no-absolute-import,
|
||||
no-init,
|
||||
no-self-use,
|
||||
next-method-defined,
|
||||
nonzero-method,
|
||||
oct-method,
|
||||
old-division,
|
||||
old-ne-operator,
|
||||
old-octal-literal,
|
||||
old-raise-syntax,
|
||||
parameter-unpacking,
|
||||
print-statement,
|
||||
raising-string,
|
||||
range-builtin-not-iterating,
|
||||
raw_input-builtin,
|
||||
reduce-builtin,
|
||||
reload-builtin,
|
||||
round-builtin,
|
||||
rdiv-method,
|
||||
setslice-method,
|
||||
standarderror-builtin,
|
||||
using-cmp-argument,
|
||||
disable =
|
||||
bad-continuation,
|
||||
bad-indentation,
|
||||
duplicate-code,
|
||||
file-ignored,
|
||||
fixme,
|
||||
global-statement,
|
||||
invalid-name,
|
||||
locally-disabled,
|
||||
locally-enabled,
|
||||
lowercase-l-suffix,
|
||||
misplaced-comparison-constant,
|
||||
no-else-return,
|
||||
no-init,
|
||||
no-self-use,
|
||||
suppressed-message,
|
||||
too-few-public-methods,
|
||||
too-many-ancestors,
|
||||
@@ -351,20 +341,58 @@ disable =
|
||||
too-many-public-methods,
|
||||
too-many-return-statements,
|
||||
ungrouped-imports,
|
||||
unused-wildcard-import,
|
||||
|
||||
feature-toggle-needs-doc,
|
||||
illegal-waffle-usage,
|
||||
|
||||
apply-builtin,
|
||||
backtick,
|
||||
bad-python3-import,
|
||||
basestring-builtin,
|
||||
buffer-builtin,
|
||||
cmp-builtin,
|
||||
coerce-builtin,
|
||||
deprecated-itertools-function,
|
||||
deprecated-operator-function,
|
||||
deprecated-str-translate-call,
|
||||
deprecated-string-function,
|
||||
deprecated-sys-function,
|
||||
deprecated-types-field,
|
||||
deprecated-urllib-function,
|
||||
execfile-builtin,
|
||||
file-builtin,
|
||||
import-star-module-level,
|
||||
input-builtin,
|
||||
intern-builtin,
|
||||
long-builtin,
|
||||
long-suffix,
|
||||
no-absolute-import,
|
||||
non-ascii-bytes-literal,
|
||||
old-division,
|
||||
old-ne-operator,
|
||||
old-octal-literal,
|
||||
parameter-unpacking,
|
||||
print-statement,
|
||||
raw_input-builtin,
|
||||
reduce-builtin,
|
||||
reload-builtin,
|
||||
round-builtin,
|
||||
standarderror-builtin,
|
||||
unichr-builtin,
|
||||
unicode-builtin,
|
||||
unpacking-in-except,
|
||||
using-cmp-argument,
|
||||
xrange-builtin,
|
||||
zip-builtin-not-iterating,
|
||||
|
||||
logging-fstring-interpolation,
|
||||
native-string,
|
||||
import-outside-toplevel,
|
||||
inconsistent-return-statements,
|
||||
no-else-break,
|
||||
no-else-continue,
|
||||
useless-object-inheritance,
|
||||
useless-suppression,
|
||||
cyclic-import,
|
||||
useless-suppression,
|
||||
cyclic-import,
|
||||
|
||||
[REPORTS]
|
||||
output-format = text
|
||||
@@ -410,7 +438,7 @@ ignore-imports = no
|
||||
ignore-mixin-members = yes
|
||||
ignored-classes = SQLObject
|
||||
unsafe-load-any-extension = yes
|
||||
generated-members =
|
||||
generated-members =
|
||||
REQUEST,
|
||||
acl_users,
|
||||
aq_parent,
|
||||
@@ -436,7 +464,7 @@ generated-members =
|
||||
[VARIABLES]
|
||||
init-import = no
|
||||
dummy-variables-rgx = _|dummy|unused|.*_unused
|
||||
additional-builtins =
|
||||
additional-builtins =
|
||||
|
||||
[CLASSES]
|
||||
defining-attr-methods = __init__,__new__,setUp
|
||||
@@ -457,11 +485,11 @@ max-public-methods = 20
|
||||
|
||||
[IMPORTS]
|
||||
deprecated-modules = regsub,TERMIOS,Bastion,rexec
|
||||
import-graph =
|
||||
ext-import-graph =
|
||||
int-import-graph =
|
||||
import-graph =
|
||||
ext-import-graph =
|
||||
int-import-graph =
|
||||
|
||||
[EXCEPTIONS]
|
||||
overgeneral-exceptions = Exception
|
||||
|
||||
# 0d4fd0d60a626c49dd7335bbd9913c27554bb1ac
|
||||
# 6d9127c8d4b551af88b2a1f3a9b2642a3a853452
|
||||
|
||||
@@ -12,6 +12,8 @@ disable+ =
|
||||
no-else-break,
|
||||
no-else-continue,
|
||||
useless-object-inheritance,
|
||||
useless-suppression,
|
||||
cyclic-import,
|
||||
|
||||
[BASIC]
|
||||
attr-rgx = [a-z_][a-z0-9_]{2,40}$
|
||||
|
||||
Reference in New Issue
Block a user