Cover some of the checks done by flake8 bugbear extension #4725
mehdigmira
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Pyright is a type checker, not a linter. It is intended to complement a general linter like flake8 or pylint. In general, we consider adding diagnostics checks only if they require in-depth knowledge of static types — which are not available to a more general linter. Catching bare exceptions is something that a regular linter can easily do. Pyright already provides a check for mutable types used for argument defaults: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
The scope pyright currently covers is larger than what a static type checker as mypy does, which is great. Stuff such as missing super call, etc. are covered while not really type related.
I think there a few items you could pick up from flake8 and the flake8 bugbear extension (https://pypi.org/project/flake8-bugbear/).
The ones i find interesting:
Beta Was this translation helpful? Give feedback.
All reactions