From db1c9a9448875f1e88c6c93f13592f7325ed74c9 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 12 Feb 2021 15:07:28 -0800 Subject: [PATCH] docs: Remove obsolete note about unused imports. We started prohibiting them in #11654. Signed-off-by: Anders Kaseorg --- docs/testing/linters.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/testing/linters.md b/docs/testing/linters.md index 25d2c5a96c..84646bf871 100644 --- a/docs/testing/linters.md +++ b/docs/testing/linters.md @@ -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 call "pyflakes" in a fairly vanilla fashion, and then we post-process its -output to exclude certain types of errors that Zulip is comfortable -ignoring. (One notable class of error that Zulip currently tolerates is -unused imports--because of the way mypy type annotations work in Python 2, -it would be inconvenient to enforce this too strictly.) +output to exclude certain specific errors that Zulip is comfortable +ignoring. 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