Skip to content

Instructions for checking typing of code cause pylint and autotyping to run #51313

Closed
@Dr-Irv

Description

@Dr-Irv

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.

Metadata

Metadata

Assignees

Labels

Code StyleCode style, linting, code_checksDocsTypingtype annotations, mypy/pyright type checking

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions