eeb7314c46
When run with Python 3.9, pylint incorrectly warns about things like Optional[foo] because it doesn't recognise Optional as unsubscriptable. This is a known pylint bug: https://github.com/PyCQA/pylint/issues/3882 Just disable this check to get rid of the warnings. Disabling this shouldn't make us miss any real bug because mypy also has a similar check ("... is not indexable"). Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20201027163806.290960-3-kwolf@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
29 lines
1.1 KiB
INI
29 lines
1.1 KiB
INI
[MESSAGES CONTROL]
|
|
|
|
# Disable the message, report, category or checker with the given id(s). You
|
|
# can either give multiple identifiers separated by comma (,) or put this
|
|
# option multiple times (only on the command line, not in the configuration
|
|
# file where it should appear only once). You can also use "--disable=all" to
|
|
# disable everything first and then reenable specific checks. For example, if
|
|
# you want to run only the similarities checker, you can use "--disable=all
|
|
# --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=invalid-name,
|
|
no-else-return,
|
|
too-few-public-methods,
|
|
too-many-arguments,
|
|
too-many-branches,
|
|
too-many-lines,
|
|
too-many-locals,
|
|
too-many-public-methods,
|
|
# pylint warns about Optional[] etc. as unsubscriptable in 3.9
|
|
unsubscriptable-object,
|
|
# These are temporary, and should be removed:
|
|
missing-docstring,
|
|
|
|
[FORMAT]
|
|
|
|
# Maximum number of characters on a single line.
|
|
max-line-length=79
|