-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lint: Run pyflakes and pycodestyle via Flake8 #14532
Conversation
I guess we should turn on parallelism; for hot-cache runtime it's by far the slowest (which is why we had our hacky parallelism before).
|
Oh, it is using parallelism -- it's just that |
Generated by autopep8, with the setup.cfg configuration from zulip#14532. I’m not sure why pycodestyle didn’t already flag these. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
Generated by autopep8 --aggressive, with the setup.cfg configuration from zulip#14532. In general, an isinstance check may not be equivalent to a type check because it includes subtypes; however, that’s usually what you want. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
Generated by autopep8, with the setup.cfg configuration from #14532. I’m not sure why pycodestyle didn’t already flag these. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
Generated by autopep8 --aggressive, with the setup.cfg configuration from #14532. In general, an isinstance check may not be equivalent to a type check because it includes subtypes; however, that’s usually what you want. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
Generated by autopep8, with the setup.cfg configuration from zulip#14532. I’m not sure why pycodestyle didn’t already flag these. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
Generated by autopep8 --aggressive, with the setup.cfg configuration from zulip#14532. In general, an isinstance check may not be equivalent to a type check because it includes subtypes; however, that’s usually what you want. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
Generated by autopep8, with the setup.cfg configuration from zulip#14532. I’m not sure why pycodestyle didn’t already flag these. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
Generated by autopep8 --aggressive, with the setup.cfg configuration from zulip#14532. In general, an isinstance check may not be equivalent to a type check because it includes subtypes; however, that’s usually what you want. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
c7ce0cb
to
68fbb27
Compare
Signed-off-by: Anders Kaseorg <anders@zulip.com>
Flake8 automatically gives us support for noqa comments, parallelism, configuration files, plugins, and easy editor integration. Signed-off-by: Anders Kaseorg <anders@zulip.com>
Upstream performance issues:
The latter is especially relevant now that we disable most pycodestyle checks in favor of Black (#15662). |
Heads up @andersk, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
4ec3636
to
88b200c
Compare
Closing as these linters are obsolete thanks to ruff. |
Flake8 automatically gives us support for
noqa
comments, parallelism, configuration files, plugins, and easy editor integration. Plus, now we can write poems about how to placate Flake8.