Skip to content
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

Feature request: Support --enable-error-code to allow for optional checks #717

Open
RenDelaCruz opened this issue Aug 2, 2024 · 1 comment · May be fixed by #835
Open

Feature request: Support --enable-error-code to allow for optional checks #717

RenDelaCruz opened this issue Aug 2, 2024 · 1 comment · May be fixed by #835

Comments

@RenDelaCruz
Copy link

It would be great to support mypy's --enable-error-code flag, to support some optional checks that don't have their own flag. Error codes: https://mypy.readthedocs.io/en/stable/error_code_list2.html#check-that-expression-is-redundant-redundant-expr.

This includes very useful error codes like:

  • redundant-expr
  • possibly-undefined
  • truthy-bool
  • etc.
@sobolevn
Copy link

I agree, this is a critical missing feature: we can't really create repros for optional checks via this amazing tool.

I will create a PR.

@sobolevn sobolevn linked a pull request Jan 28, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants