-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Instructions for checking typing of code cause pylint and autotyping to run #51313
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
Comments
Hey
CI is green - do you have the same version(s) of packages installed? I've sometimes had failures when I had, for example, a different numpy version |
I think we can define only one manual stage (which started out to contain only mypy+pyright and then pylint+autotyping were moved there as well). Could change the typing documentation to:
|
Yes, and you have to add that you need to stage the changed files before doing the typing check. |
So I had done Maybe we need to put something in the contributing docs about how to update the environment when you merge with |
Hey I want to start my contribution with this, could I be assigned this |
Thanks for the offer, but we have an active PR #51352 that has the required changes. |
At https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#validating-type-hints we tell people to validate the types of their code by doing:
pre-commit run --hook-stage manual --all-files
. The problem here is that this causesautotyping
andpylint
to run.pylint
takes a long time, so we should tell people to skip it.Worse is that
autotyping
causes lots of files to change, so you end up with a bigger set of changed files.I think we should modify the
.pre-commit-config.yaml
to define atyping
stage that only runspyright
andmypy
.Even if we do that, I get a lot of typing errors on the code in
main
from both type checkers. So that should be addressed as well.The text was updated successfully, but these errors were encountered: