From 75d6678e18d7cb45e0aac7825868407b66107eff Mon Sep 17 00:00:00 2001 From: Pacman Ghost Date: Sun, 23 Oct 2022 04:43:10 +1100 Subject: [PATCH] Updated the pylint config. --- .pylintrc | 87 +++---------------------------------------------------- 1 file changed, 4 insertions(+), 83 deletions(-) diff --git a/.pylintrc b/.pylintrc index 2932039..ff21a14 100644 --- a/.pylintrc +++ b/.pylintrc @@ -60,17 +60,7 @@ confidence= # --enable=similarities". If you want to run only the classes checker, but have # no Warning level messages displayed, use "--disable=all --enable=classes # --disable=W". -disable=print-statement, - parameter-unpacking, - unpacking-in-except, - old-raise-syntax, - backtick, - long-suffix, - old-ne-operator, - old-octal-literal, - import-star-module-level, - non-ascii-bytes-literal, - raw-checker-failed, +disable=raw-checker-failed, bad-inline-option, locally-disabled, file-ignored, @@ -78,77 +68,15 @@ disable=print-statement, useless-suppression, deprecated-pragma, use-symbolic-message-instead, - apply-builtin, - basestring-builtin, - buffer-builtin, - cmp-builtin, - coerce-builtin, - execfile-builtin, - file-builtin, - long-builtin, - raw_input-builtin, - reduce-builtin, - standarderror-builtin, - unicode-builtin, - xrange-builtin, - coerce-method, - delslice-method, - getslice-method, - setslice-method, - no-absolute-import, - old-division, - dict-iter-method, - dict-view-method, - next-method-called, - metaclass-assignment, - indexing-exception, - raising-string, - reload-builtin, - oct-method, - hex-method, - nonzero-method, - cmp-method, - input-builtin, - round-builtin, - intern-builtin, - unichr-builtin, - map-builtin-not-iterating, - zip-builtin-not-iterating, - range-builtin-not-iterating, - filter-builtin-not-iterating, - using-cmp-argument, - eq-without-hash, - div-method, - idiv-method, - rdiv-method, - exception-message-attribute, - invalid-str-codec, - sys-max-int, - bad-python3-import, - deprecated-string-function, - deprecated-str-translate-call, - deprecated-itertools-function, - deprecated-types-field, - next-method-defined, - dict-items-not-iterating, - dict-keys-not-iterating, - dict-values-not-iterating, - deprecated-operator-function, - deprecated-urllib-function, - xreadlines-attribute, - deprecated-sys-function, - exception-escape, - comprehension-escape, - bad-whitespace, invalid-name, wrong-import-position, global-statement, - bad-continuation, too-few-public-methods, no-else-return, consider-using-f-string, use-implicit-booleaness-not-comparison, - duplicate-code + duplicate-code, + unnecessary-lambda-assignment, # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option @@ -265,7 +193,7 @@ ignore-on-opaque-inference=yes # for classes with dynamically set attributes). This supports the use of # qualified names. # NOTE: We disable warnings for SQLAlchemy's Column class members e.g. ilike(), asc() -ignored-classes=optparse.Values,thread._local,_thread._local,Column +ignored-classes=optparse.Values,thread._local,_thread._local,scoped_session,Column # List of module names for which member attributes should not be checked # (useful for modules/projects where namespaces are manipulated during runtime @@ -310,13 +238,6 @@ max-line-length=120 # Maximum number of lines in a module. max-module-lines=1000 -# List of optional constructs for which whitespace checking is disabled. `dict- -# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. -# `trailing-comma` allows a space between comma and closing bracket: (a, ). -# `empty-line` allows space-only lines. -no-space-check=trailing-comma, - dict-separator - # Allow the body of a class to be on the same line as the declaration if body # contains single statement. single-line-class-stmt=no