docs: Remove obsolete note about unused imports.

We started prohibiting them in #11654.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-02-12 15:07:28 -08:00
parent 0f4d5cd90a
commit db1c9a9448
1 changed files with 2 additions and 4 deletions

View File

@ -168,10 +168,8 @@ sense (e.g. a link in a comment to an extremely long URL).
The bulk of our Python linting gets outsourced to the "pyflakes" tool. We The bulk of our Python linting gets outsourced to the "pyflakes" tool. We
call "pyflakes" in a fairly vanilla fashion, and then we post-process its call "pyflakes" in a fairly vanilla fashion, and then we post-process its
output to exclude certain types of errors that Zulip is comfortable output to exclude certain specific errors that Zulip is comfortable
ignoring. (One notable class of error that Zulip currently tolerates is ignoring.
unused imports--because of the way mypy type annotations work in Python 2,
it would be inconvenient to enforce this too strictly.)
Zulip also has custom regex-based rules that it applies to Python code. Zulip also has custom regex-based rules that it applies to Python code.
Look for `python_rules` in the source code for `lint`. Note that we Look for `python_rules` in the source code for `lint`. Note that we