Closed
Description
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 causes autotyping
and pylint
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 a typing
stage that only runs pyright
and mypy
.
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.