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

Enable more of mypy's diagnostics #983

Open
SamWilsn opened this issue Aug 8, 2024 · 0 comments · May be fixed by #984
Open

Enable more of mypy's diagnostics #983

SamWilsn opened this issue Aug 8, 2024 · 0 comments · May be fixed by #984
Labels
A-tool Area: tooling C-enhance Category: a request for an improvement E-easy Experience: easy, good for newcomers

Comments

@SamWilsn
Copy link
Collaborator

SamWilsn commented Aug 8, 2024

The full list is here: https://mypy.readthedocs.io/en/stable/error_code_list2.html

From a quick read, we probably want to enable at least:

  • disallow-any-generics
  • disallow-untyped-defs
  • warn-redundant-casts
  • strict-equality
  • disallow-untyped-calls
  • warn-return-any
  • disallow-any-unimported
  • warn-unreachable
  • ignore-without-code
  • unused-ignore
  • explicit-override
  • mutable-override

I think some of these are already on, but it doesn't hurt to check.

@SamWilsn SamWilsn added A-tool Area: tooling C-enhance Category: a request for an improvement E-easy Experience: easy, good for newcomers labels Aug 8, 2024
@richardgreg richardgreg linked a pull request Aug 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tool Area: tooling C-enhance Category: a request for an improvement E-easy Experience: easy, good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant