diff --git a/.editorconfig b/.editorconfig index 4a2b86dcd63088e0179a76c7cb73219c482abc33..5cf5aed0a8390b63de70c22e4254161303b1b8c8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,14 +2,14 @@ # ** DO NOT EDIT THIS FILE ** # *************************** # -# This file was generated by edx-lint: https://github.com/edx/edx-lint +# This file was generated by edx-lint: https://github.com/openedx/edx-lint # # If you want to change this file, you have two choices, depending on whether # you want to make a local change that applies only to this repo, or whether # 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 -# pylintrc rules in edx-lint, ensure you have the latest edx-lint installed +# Note: If your .editorconfig file is simply out-of-date relative to the latest +# .editorconfig in edx-lint, ensure you have the latest edx-lint installed # and then follow the steps for a "LOCAL CHANGE". # # LOCAL CHANGE: @@ -28,7 +28,7 @@ # CENTRAL CHANGE: # # 1. Edit the .editorconfig file in the edx-lint repo at -# https://github.com/edx/edx-lint/blob/master/edx_lint/files/.editorconfig +# https://github.com/openedx/edx-lint/blob/master/edx_lint/files/.editorconfig # # 2. install the updated version of edx-lint (in edx-lint): # @@ -36,19 +36,16 @@ # # 3. Run (in edx-lint): # -# # uses .editorconfig_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 .editorconfig # # 4. Make a new version of edx_lint, submit and review a pull request with the -# .editorconfig update, and after merging, update the edx-lint version by -# creating a new tag in the repo (uses pbr). +# .editorconfig update, and after merging, update the edx-lint version and +# publish the new version. # # 5. In your local repo, install the newer version of edx-lint. # # 6. Run: # -# # uses local .editorconfig_tweaks # $ edx_lint write .editorconfig # # 7. This will modify the local file. Submit a pull request to get it @@ -67,6 +64,8 @@ # SERIOUSLY. # # ------------------------------ +# Generated by edx-lint version: 5.2.5 +# ------------------------------ [*] end_of_line = lf insert_final_newline = true @@ -92,7 +91,10 @@ trim_trailing_whitespace = false [.git/*] trim_trailing_whitespace = false +[COMMIT_EDITMSG] +max_line_length = 72 + [*.rst] max_line_length = 79 -# 236fe82ad6fd039c2dc9d98eb6b70bb72d183307 +# f2f02689fced7a2e0c62c2f9803184114dc2ae4b diff --git a/pylintrc b/pylintrc index 54f265b02a0c0c99725dbce26034625631c2926f..6830c8681aca6d66a89c1dda130d7bd9c8985696 100644 --- a/pylintrc +++ b/pylintrc @@ -2,7 +2,7 @@ # ** DO NOT EDIT THIS FILE ** # *************************** # -# This file was generated by edx-lint: https://github.com/edx/edx-lint +# This file was generated by edx-lint: https://github.com/openedx/edx-lint # # If you want to change this file, you have two choices, depending on whether # you want to make a local change that applies only to this repo, or whether @@ -28,7 +28,7 @@ # CENTRAL CHANGE: # # 1. Edit the pylintrc file in the edx-lint repo at -# https://github.com/edx/edx-lint/blob/master/edx_lint/files/pylintrc +# https://github.com/openedx/edx-lint/blob/master/edx_lint/files/pylintrc # # 2. install the updated version of edx-lint (in edx-lint): # @@ -64,7 +64,7 @@ # SERIOUSLY. # # ------------------------------ -# Generated by edx-lint version: 5.2.3 +# Generated by edx-lint version: 5.2.5 # ------------------------------ [MASTER] ignore = @@ -102,13 +102,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, @@ -117,11 +115,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, @@ -139,9 +135,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, @@ -150,8 +143,6 @@ enable = non-iterator-returned, non-parent-method-called, nonexistent-operator, - nonimplemented-raised, - nonstandard-exception, not-a-mapping, not-an-iterable, not-callable, @@ -159,24 +150,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, @@ -184,7 +169,6 @@ enable = too-many-function-args, translation-of-non-string, truncated-format-string, - unbalance-tuple-unpacking, undefined-all-variable, undefined-loop-variable, undefined-variable, @@ -202,8 +186,6 @@ enable = yield-outside-function, astroid-error, - django-not-available-placeholder, - django-not-available, fatal, method-check-failed, parse-error, @@ -234,14 +216,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, @@ -288,11 +266,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, @@ -311,22 +285,15 @@ disable = feature-toggle-needs-doc, illegal-waffle-usage, - long-suffix, - non-ascii-bytes-literal, - old-ne-operator, - old-octal-literal, - logging-fstring-interpolation, django-not-configured, [REPORTS] output-format = text -files-output = no reports = no score = no [BASIC] -bad-functions = map,filter,apply,input module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ const-rgx = (([A-Z_][A-Z0-9_]*)|(__.*__)|log|urlpatterns)$ class-rgx = [A-Z_][a-zA-Z0-9]+$ @@ -346,7 +313,6 @@ docstring-min-length = 5 max-line-length = 120 ignore-long-lines = ^\s*(# )?((<?https?://\S+>?)|(\.\. \w+: .*))$ single-line-if-stmt = no -no-space-check = trailing-comma,dict-separator max-module-lines = 1000 indent-string = ' ' @@ -417,4 +383,4 @@ int-import-graph = [EXCEPTIONS] overgeneral-exceptions = Exception -# fefa80be480bcbe75428de34a303e89a6206e6a3 +# d1da7b0099fad5ecd841f40012c2a0bc326a4c1b