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:
Ryan Roden-Corrent 2017-10-12 11:51:03 -04:00
parent 80f46192b5
commit 69ced4e033

View File

@ -349,12 +349,13 @@ bind_chained('<Escape>', 'clear-keychain', 'search')
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]
----
c = c # noqa: F821
config = config # noqa: F821
c = c # noqa: F821 pylint: disable=invalid-name,undefined-variable
config = config # noqa: F821 pylint: disable=invalid-name,undefined-variable
----
For type annotation support (note that those imports aren't guaranteed to be