diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ac629596..fecbb988 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -13,6 +13,11 @@ Change Log Unreleased ~~~~~~~~~~ +5.2.4 - 2022-06-10 +~~~~~~~~~~~~~~~~~~ + +* Updated `pylintrc` template for `edx_lint write pylintrc` command for `pylint>=2.14.0`. + 5.2.3 - 2022-06-09 ~~~~~~~~~~~~~~~~~~ diff --git a/edx_lint/__init__.py b/edx_lint/__init__.py index 6b91b00e..fde3e307 100644 --- a/edx_lint/__init__.py +++ b/edx_lint/__init__.py @@ -2,4 +2,4 @@ edx_lint standardizes lint configuration and additional plugins for use in Open edX code. """ -__version__ = "5.2.3" +__version__ = "5.2.4" diff --git a/edx_lint/files/pylintrc b/edx_lint/files/pylintrc index e34e5dae..78deaa9e 100644 --- a/edx_lint/files/pylintrc +++ b/edx_lint/files/pylintrc @@ -56,13 +56,11 @@ enable= cell-var-from-loop, confusing-with-statement, continue-in-finally, - cyclical-import, dangerous-default-value, duplicate-argument-name, duplicate-bases, duplicate-except, duplicate-key, - eq-without-hash, expression-not-assigned, format-combined-specification, format-needs-mapping, @@ -71,11 +69,9 @@ enable= 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, @@ -93,9 +89,6 @@ enable= 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, @@ -104,8 +97,6 @@ enable= non-iterator-returned, non-parent-method-called, nonexistent-operator, - nonimplemented-raised, - nonstandard-exception, not-a-mapping, not-an-iterable, not-callable, @@ -113,24 +104,18 @@ enable= not-in-loop, pointless-statement, pointless-string-statement, - property-on-old-class, raising-bad-type, raising-non-exception, 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, test-inherits-tests, too-few-format-args, @@ -138,7 +123,6 @@ enable= too-many-function-args, translation-of-non-string, truncated-format-string, - unbalance-tuple-unpacking, undefined-all-variable, undefined-loop-variable, undefined-variable, @@ -157,8 +141,6 @@ enable= # Checking failed for some reason astroid-error, - django-not-available-placeholder, - django-not-available, fatal, method-check-failed, parse-error, @@ -194,14 +176,10 @@ enable= literal-used-as-attribute, logging-format-interpolation, logging-not-lazy, - model-has-unicode, - model-missing-unicode, - model-no-explicit-unicode, multiple-imports, multiple-statements, no-classmethod-decorator, no-staticmethod-decorator, - old-style-class, protected-access, redundant-unittest-assert, reimported, @@ -265,11 +243,7 @@ disable= global-statement, invalid-name, locally-disabled, - locally-enabled, - lowercase-l-suffix, - misplaced-comparison-constant, no-else-return, - no-self-use, suppressed-message, too-few-public-methods, too-many-ancestors, @@ -289,12 +263,6 @@ disable= feature-toggle-needs-doc, illegal-waffle-usage, - # These can't be used in python 3 code - long-suffix, - non-ascii-bytes-literal, - old-ne-operator, - old-octal-literal, - # We want to allow developers to use f-strings for readability logging-fstring-interpolation, @@ -305,11 +273,6 @@ disable= # mypackage.mymodule.MyReporterClass. output-format=text -# Put messages in a separate file for each module / package specified on the -# command line instead of printing them on stdout. Reports (if any) will be -# written in a file name "pylint_global.[txt|html]". -files-output=no - # Tells whether to display a full report or only the messages reports=no @@ -323,9 +286,6 @@ score=no [BASIC] -# List of builtins function names that should not be used, separated by a comma -bad-functions=map,filter,apply,input - # Regular expression which should only match correct module names module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ @@ -391,9 +351,6 @@ ignore-long-lines=^\s*(# )?((?)|(\.\. \w+: .*))$ # else. single-line-if-stmt=no -# List of optional constructs for which whitespace checking is disabled -no-space-check=trailing-comma,dict-separator - # Maximum number of lines in a module max-module-lines=1000 diff --git a/pylintrc b/pylintrc index 17907733..82f040fc 100644 --- a/pylintrc +++ b/pylintrc @@ -64,7 +64,7 @@ # SERIOUSLY. # # ------------------------------ -# Generated by edx-lint version: 5.1.0 +# Generated by edx-lint version: 5.2.3 # ------------------------------ [MASTER] ignore = ,input @@ -104,18 +104,12 @@ enable = 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, @@ -134,13 +128,11 @@ enable = 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, @@ -170,8 +162,6 @@ enable = property-on-old-class, raising-bad-type, raising-non-exception, - raising-string, - range-builtin-not-iterating, redefined-builtin, redefined-in-handler, redefined-outer-name, @@ -188,7 +178,6 @@ enable = super-method-not-called, super-on-old-class, syntax-error, - sys-max-int, test-inherits-tests, too-few-format-args, too-many-format-args, @@ -211,7 +200,6 @@ enable = used-before-assignment, using-constant-test, yield-outside-function, - zip-builtin-not-iterating, astroid-error, django-not-available-placeholder, @@ -237,7 +225,6 @@ enable = bad-classmethod-argument, bad-mcs-classmethod-argument, bad-mcs-method-argument, - bad-whitespace, bare-except, broad-except, consider-iterating-dictionary, @@ -247,7 +234,6 @@ enable = literal-used-as-attribute, logging-format-interpolation, logging-not-lazy, - metaclass-assignment, model-has-unicode, model-missing-unicode, model-no-explicit-unicode, @@ -255,7 +241,6 @@ enable = multiple-statements, no-classmethod-decorator, no-staticmethod-decorator, - old-raise-syntax, old-style-class, protected-access, redundant-unittest-assert, @@ -284,7 +269,6 @@ enable = wrong-import-position, missing-final-newline, - mixed-indentation, mixed-line-endings, trailing-newlines, trailing-whitespace, @@ -295,25 +279,7 @@ enable = deprecated-pragma, unrecognized-inline-option, useless-suppression, - - cmp-method, - 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-indentation, consider-using-f-string, duplicate-code, @@ -326,7 +292,6 @@ disable = lowercase-l-suffix, misplaced-comparison-constant, no-else-return, - no-init, no-self-use, suppressed-message, too-few-public-methods, @@ -346,43 +311,10 @@ disable = 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, - xrange-builtin, logging-fstring-interpolation, @@ -484,4 +416,4 @@ int-import-graph = [EXCEPTIONS] overgeneral-exceptions = Exception -# a3b3d132ed233781254fafa64b208fb0b60f759e +# 61a703c2f02e8e53fab82d4fccaea1be7c83e84c