Skip to content

Commit

Permalink
fix pylint config for pylint = "^2.4.4, <2.13"
Browse files Browse the repository at this point in the history
E0015: Unrecognized option found: no-space-check (unrecognized-option) (removed in pylint 2.6.0)
'bad-continuation' was removed from pylint, see pylint-dev/pylint#3571. (useless-option-value)
'no-self-use' was moved to an optional extension, see https://pylint.readthedocs.io/en/latest/whatsnew/2/2.14/summary.html#removed-checkers. (useless-option-value)
  • Loading branch information
kkotenko committed Mar 6, 2024
1 parent f7def46 commit bd1b023
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions config/pylint
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,13 @@ confidence=
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable=fixme,
bad-continuation,
import-error,
invalid-name,
missing-function-docstring,
missing-module-docstring,
no-else-break,
no-else-raise,
no-else-return,
no-self-use,
too-few-public-methods,
too-many-arguments,
too-many-instance-attributes,
Expand Down Expand Up @@ -170,13 +168,6 @@ max-line-length=88
# Maximum number of lines in a module.
max-module-lines=2000

# 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
Expand Down Expand Up @@ -521,6 +512,6 @@ preferred-modules=
[EXCEPTIONS]

# Exceptions that will emit a warning when being caught. Defaults to
# "BaseException, Exception".
overgeneral-exceptions=BaseException,
Exception
# "builtins.BaseException, builtins.Exception".
overgeneral-exceptions=builtins.BaseException,
builtins.Exception

0 comments on commit bd1b023

Please sign in to comment.