mirror of https://github.com/zulip/zulip.git
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:
parent
0f4d5cd90a
commit
db1c9a9448
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue