Skip to content
Snippets Groups Projects
Unverified Commit 5da3d625 authored by Ned Batchelder's avatar Ned Batchelder Committed by GitHub
Browse files

Merge pull request #199 from edx/nedbat/fix-198

build: latest pylintrc from edx-lint
parents ad86d2b9 7d912e03
No related branches found
No related tags found
No related merge requests found
...@@ -332,19 +332,19 @@ class LtiConfiguration(models.Model): ...@@ -332,19 +332,19 @@ class LtiConfiguration(models.Model):
@property @property
def pii_share_username(self): def pii_share_username(self):
return self.lti_config.get('pii_share_username', False) return self.lti_config.get('pii_share_username', False) # pylint: disable=no-member
@pii_share_username.setter @pii_share_username.setter
def pii_share_username(self, value): def pii_share_username(self, value):
self.lti_config['pii_share_username'] = value self.lti_config['pii_share_username'] = value # pylint: disable=unsupported-assignment-operation
@property @property
def pii_share_email(self): def pii_share_email(self):
return self.lti_config.get('pii_share_email', False) return self.lti_config.get('pii_share_email', False) # pylint: disable=no-member
@pii_share_email.setter @pii_share_email.setter
def pii_share_email(self, value): def pii_share_email(self, value):
self.lti_config['pii_share_email'] = value self.lti_config['pii_share_email'] = value # pylint: disable=unsupported-assignment-operation
def __str__(self): def __str__(self):
return f"[{self.config_store}] {self.version} - {self.location}" return f"[{self.config_store}] {self.version} - {self.location}"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# you want to make a central change that applies to all repos using edx-lint. # you want to make a central change that applies to all repos using edx-lint.
# #
# Note: If your pylintrc file is simply out-of-date relative to the latest # Note: If your pylintrc file is simply out-of-date relative to the latest
# pylintrc rules in edx-lint, ensure you have the latest edx-lint installed # pylintrc in edx-lint, ensure you have the latest edx-lint installed
# and then follow the steps for a "LOCAL CHANGE". # and then follow the steps for a "LOCAL CHANGE".
# #
# LOCAL CHANGE: # LOCAL CHANGE:
...@@ -36,19 +36,16 @@ ...@@ -36,19 +36,16 @@
# #
# 3. Run (in edx-lint): # 3. Run (in edx-lint):
# #
# # uses pylintrc_tweaks from edx-lint for linting in edx-lint
# # NOTE: Use Python 3.x, which no longer includes comments in the output file
# $ edx_lint write pylintrc # $ edx_lint write pylintrc
# #
# 4. Make a new version of edx_lint, submit and review a pull request with the # 4. Make a new version of edx_lint, submit and review a pull request with the
# pylintrc update, and after merging, update the edx-lint version by # pylintrc update, and after merging, update the edx-lint version and
# creating a new tag in the repo (uses pbr). # publish the new version.
# #
# 5. In your local repo, install the newer version of edx-lint. # 5. In your local repo, install the newer version of edx-lint.
# #
# 6. Run: # 6. Run:
# #
# # uses local pylintrc_tweaks
# $ edx_lint write pylintrc # $ edx_lint write pylintrc
# #
# 7. This will modify the local file. Submit a pull request to get it # 7. This will modify the local file. Submit a pull request to get it
...@@ -67,298 +64,328 @@ ...@@ -67,298 +64,328 @@
# SERIOUSLY. # SERIOUSLY.
# #
# ------------------------------ # ------------------------------
# Generated by edx-lint version: 5.2.0
# ------------------------------
[MASTER] [MASTER]
ignore = ignore =
persistent = yes persistent = yes
load-plugins = edx_lint.pylint,pylint_django,pylint_celery load-plugins = edx_lint.pylint,pylint_django,pylint_celery
[MESSAGES CONTROL] [MESSAGES CONTROL]
enable = enable =
blacklisted-name, blacklisted-name,
line-too-long, 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, abstract-class-instantiated,
bad-reversed-sequence, abstract-method,
continue-in-finally,
method-hidden,
access-member-before-definition, access-member-before-definition,
no-method-argument, anomalous-backslash-in-string,
no-self-argument, anomalous-unicode-escape-in-string,
invalid-slots-object, arguments-differ,
assert-on-tuple,
assigning-non-slot, assigning-non-slot,
invalid-slots, assignment-from-no-return,
inherit-non-class, assignment-from-none,
inconsistent-mro, 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,
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-bases,
non-iterator-returned, duplicate-except,
unexpected-special-method-signature, duplicate-key,
invalid-length-returned, 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-error,
used-before-assignment, import-self,
undefined-variable, inconsistent-mro,
undefined-all-variable, indexing-exception,
inherit-non-class,
init-is-generator,
invalid-all-object, invalid-all-object,
no-name-in-module, invalid-encoded-data,
unbalance-tuple-unpacking, invalid-format-index,
unpacking-non-sequence, invalid-length-returned,
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-sequence-index,
invalid-slice-index, invalid-slice-index,
assignment-from-none, invalid-slots-object,
not-context-manager, invalid-slots,
invalid-str-codec,
invalid-unary-operand-type, 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, logging-too-few-args,
bad-format-character, logging-too-many-args,
truncated-format-string, logging-unsupported-format,
mixed-fomat-string, lost-exception,
format-needs-mapping, map-builtin-not-iterating,
method-hidden,
misplaced-bare-raise,
misplaced-future,
missing-format-argument-key,
missing-format-attribute,
missing-format-string-key, missing-format-string-key,
too-many-format-args, missing-super-argument,
too-few-format-args, mixed-fomat-string,
bad-str-strip-call,
model-unicode-not-callable, model-unicode-not-callable,
super-method-not-called, no-member,
no-method-argument,
no-name-in-module,
no-self-argument,
no-value-for-parameter,
non-iterator-returned,
non-parent-method-called, non-parent-method-called,
test-inherits-tests, nonexistent-operator,
translation-of-non-string, nonimplemented-raised,
redefined-variable-type, nonstandard-exception,
cyclical-import, not-a-mapping,
unreachable, not-an-iterable,
dangerous-default-value, not-callable,
not-context-manager,
not-in-loop,
pointless-statement, pointless-statement,
pointless-string-statement, pointless-string-statement,
expression-not-assigned, property-on-old-class,
duplicate-key, raising-bad-type,
confusing-with-statement, raising-non-exception,
using-constant-test, raising-string,
lost-exception, range-builtin-not-iterating,
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-builtin,
redefined-in-handler, 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-loop-variable,
cell-var-from-loop, undefined-variable,
duplicate-except, unexpected-keyword-arg,
nonstandard-exception, unexpected-special-method-signature,
binary-op-exception, unpacking-non-sequence,
property-on-old-class, unreachable,
bad-format-string-key, unsubscriptable-object,
unused-format-string-key, unsupported-binary-operation,
bad-format-string, unsupported-membership-test,
missing-format-argument-key,
unused-format-string-argument, unused-format-string-argument,
format-combined-specification, unused-format-string-key,
missing-format-attribute, used-before-assignment,
invalid-format-index, using-constant-test,
anomalous-backslash-in-string, yield-outside-function,
anomalous-unicode-escape-in-string, zip-builtin-not-iterating,
bad-open-mode,
boolean-datetime,
fatal,
astroid-error, astroid-error,
parse-error, django-not-available-placeholder,
method-check-failed,
django-not-available, django-not-available,
fatal,
method-check-failed,
parse-error,
raw-checker-failed, raw-checker-failed,
django-not-available-placeholder,
empty-docstring, empty-docstring,
invalid-characters-in-docstring, invalid-characters-in-docstring,
missing-docstring, missing-docstring,
wrong-spelling-in-comment, wrong-spelling-in-comment,
wrong-spelling-in-docstring, wrong-spelling-in-docstring,
unused-argument,
unused-import, unused-import,
unused-variable, unused-variable,
unused-argument,
exec-used,
eval-used, eval-used,
exec-used,
bad-classmethod-argument, bad-classmethod-argument,
bad-mcs-classmethod-argument, bad-mcs-classmethod-argument,
bad-mcs-method-argument, bad-mcs-method-argument,
bad-whitespace, bad-whitespace,
bare-except,
broad-except,
consider-iterating-dictionary, consider-iterating-dictionary,
consider-using-enumerate, consider-using-enumerate,
global-at-module-level,
global-variable-not-assigned,
literal-used-as-attribute, 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-imports,
multiple-statements, multiple-statements,
no-classmethod-decorator,
no-staticmethod-decorator,
old-raise-syntax,
old-style-class, old-style-class,
protected-access,
redundant-unittest-assert,
reimported,
simplifiable-if-statement,
simplifiable-range, simplifiable-range,
singleton-comparison, singleton-comparison,
superfluous-parens, superfluous-parens,
unidiomatic-typecheck, unidiomatic-typecheck,
unneeded-not,
wrong-assert-type,
simplifiable-if-statement,
no-classmethod-decorator,
no-staticmethod-decorator,
unnecessary-pass,
unnecessary-lambda, unnecessary-lambda,
useless-else-on-loop, unnecessary-pass,
unnecessary-semicolon, unnecessary-semicolon,
reimported, unneeded-not,
global-variable-not-assigned, useless-else-on-loop,
global-at-module-level, wrong-assert-type,
bare-except,
broad-except,
logging-not-lazy,
redundant-unittest-assert,
model-missing-unicode,
model-has-unicode,
model-no-explicit-unicode,
protected-access,
deprecated-module,
deprecated-method, deprecated-method,
deprecated-module,
too-many-boolean-expressions,
too-many-nested-blocks, too-many-nested-blocks,
too-many-statements, too-many-statements,
too-many-boolean-expressions,
wildcard-import,
wrong-import-order, wrong-import-order,
wrong-import-position, wrong-import-position,
wildcard-import,
missing-final-newline, missing-final-newline,
mixed-indentation,
mixed-line-endings, mixed-line-endings,
trailing-newlines, trailing-newlines,
trailing-whitespace, trailing-whitespace,
unexpected-line-ending-format, unexpected-line-ending-format,
mixed-indentation,
bad-inline-option,
bad-option-value, bad-option-value,
deprecated-pragma,
unrecognized-inline-option, unrecognized-inline-option,
useless-suppression, useless-suppression,
bad-inline-option,
deprecated-pragma, cmp-method,
disable = coerce-method,
delslice-method,
dict-iter-method,
dict-view-method,
div-method,
getslice-method,
hex-method,
idiv-method,
next-method-called,
next-method-defined,
nonzero-method,
oct-method,
rdiv-method,
setslice-method,
using-cmp-argument,
disable =
bad-continuation, bad-continuation,
invalid-name,
misplaced-comparison-constant,
file-ignored,
bad-indentation, bad-indentation,
lowercase-l-suffix, consider-using-f-string,
unused-wildcard-import, duplicate-code,
file-ignored,
fixme,
global-statement, global-statement,
invalid-name,
locally-disabled,
locally-enabled,
lowercase-l-suffix,
misplaced-comparison-constant,
no-else-return, no-else-return,
django-not-configured, no-init,
no-self-use,
suppressed-message,
too-few-public-methods,
too-many-ancestors,
too-many-arguments,
too-many-branches,
too-many-instance-attributes,
too-many-lines,
too-many-locals,
too-many-public-methods,
too-many-return-statements,
ungrouped-imports,
unspecified-encoding,
unused-wildcard-import,
use-maxsplit-arg,
feature-toggle-needs-doc,
illegal-waffle-usage,
apply-builtin, apply-builtin,
backtick, backtick,
bad-python3-import,
basestring-builtin, basestring-builtin,
buffer-builtin, buffer-builtin,
cmp-builtin, cmp-builtin,
cmp-method,
coerce-builtin, coerce-builtin,
coerce-method, deprecated-itertools-function,
delslice-method, deprecated-operator-function,
dict-iter-method, deprecated-str-translate-call,
dict-view-method, deprecated-string-function,
duplicate-code, deprecated-sys-function,
deprecated-types-field,
deprecated-urllib-function,
execfile-builtin, execfile-builtin,
feature-toggle-needs-doc,
file-builtin, file-builtin,
filter-builtin-not-iterating,
fixme,
getslice-method,
hex-method,
illegal-waffle-usage,
import-star-module-level, import-star-module-level,
indexing-exception,
input-builtin, input-builtin,
intern-builtin, intern-builtin,
locally-disabled,
locally-enabled,
logging-format-interpolation,
long-builtin, long-builtin,
long-suffix, long-suffix,
map-builtin-not-iterating,
metaclass-assignment,
next-method-called,
no-absolute-import, no-absolute-import,
no-init, non-ascii-bytes-literal,
no-self-use,
nonzero-method,
oct-method,
old-division, old-division,
old-ne-operator, old-ne-operator,
old-octal-literal, old-octal-literal,
old-raise-syntax,
parameter-unpacking, parameter-unpacking,
print-statement, print-statement,
raising-string,
range-builtin-not-iterating,
raw_input-builtin, raw_input-builtin,
reduce-builtin, reduce-builtin,
reload-builtin, reload-builtin,
round-builtin, round-builtin,
setslice-method,
standarderror-builtin, standarderror-builtin,
suppressed-message,
too-few-public-methods,
too-many-ancestors,
too-many-arguments,
too-many-branches,
too-many-instance-attributes,
too-many-lines,
too-many-locals,
too-many-public-methods,
too-many-return-statements,
ungrouped-imports,
unichr-builtin, unichr-builtin,
unicode-builtin, unicode-builtin,
unpacking-in-except, unpacking-in-except,
using-cmp-argument,
xrange-builtin, xrange-builtin,
zip-builtin-not-iterating,
logging-fstring-interpolation,
django-not-configured,
[REPORTS] [REPORTS]
output-format = text output-format = text
...@@ -404,7 +431,7 @@ ignore-imports = no ...@@ -404,7 +431,7 @@ ignore-imports = no
ignore-mixin-members = yes ignore-mixin-members = yes
ignored-classes = SQLObject ignored-classes = SQLObject
unsafe-load-any-extension = yes unsafe-load-any-extension = yes
generated-members = generated-members =
REQUEST, REQUEST,
acl_users, acl_users,
aq_parent, aq_parent,
...@@ -430,7 +457,7 @@ generated-members = ...@@ -430,7 +457,7 @@ generated-members =
[VARIABLES] [VARIABLES]
init-import = no init-import = no
dummy-variables-rgx = _|dummy|unused|.*_unused dummy-variables-rgx = _|dummy|unused|.*_unused
additional-builtins = additional-builtins =
[CLASSES] [CLASSES]
defining-attr-methods = __init__,__new__,setUp defining-attr-methods = __init__,__new__,setUp
...@@ -451,11 +478,11 @@ max-public-methods = 20 ...@@ -451,11 +478,11 @@ max-public-methods = 20
[IMPORTS] [IMPORTS]
deprecated-modules = regsub,TERMIOS,Bastion,rexec deprecated-modules = regsub,TERMIOS,Bastion,rexec
import-graph = import-graph =
ext-import-graph = ext-import-graph =
int-import-graph = int-import-graph =
[EXCEPTIONS] [EXCEPTIONS]
overgeneral-exceptions = Exception overgeneral-exceptions = Exception
# 42226da5ce66bbfda9d557aac3602fd7a381f747 # 5a38c87bd42739189f3eb650ceb9279968f62bcc
[MESSAGES CONTROL]
disable+=
django-not-configured,
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment