Note how to ignore pylint in configuring doc.
The doc explains how to ignore flake8 errors, but the `c` and `config` variables may also make pylint unhappy
This commit is contained in:
parent
80f46192b5
commit
69ced4e033
@ -349,12 +349,13 @@ bind_chained('<Escape>', 'clear-keychain', 'search')
|
|||||||
Avoiding flake8 errors
|
Avoiding flake8 errors
|
||||||
^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
If you use an editor with flake8 integration which complains about `c` and `config` being undefined, you can use:
|
If you use an editor with flake8 and pylint integration which complains about
|
||||||
|
`c` and `config` being undefined or invalid, you can use:
|
||||||
|
|
||||||
[source,python]
|
[source,python]
|
||||||
----
|
----
|
||||||
c = c # noqa: F821
|
c = c # noqa: F821 pylint: disable=invalid-name,undefined-variable
|
||||||
config = config # noqa: F821
|
config = config # noqa: F821 pylint: disable=invalid-name,undefined-variable
|
||||||
----
|
----
|
||||||
|
|
||||||
For type annotation support (note that those imports aren't guaranteed to be
|
For type annotation support (note that those imports aren't guaranteed to be
|
||||||
|
Loading…
Reference in New Issue
Block a user