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

Setup optional CI jobs using pyright strict mode #954

Merged
merged 3 commits into from
Jun 29, 2024

Conversation

JanEricNitschke
Copy link
Contributor

Setup a optional CI job that uses full pyright strict mode by taking its settings from pyrightconfig-strict.json.

Addresses the other points made here: #952

@JanEricNitschke
Copy link
Contributor Author

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @JanEricNitschke

It looks like there is a LOT of work to do to make the stubs work in strict mode.

@Dr-Irv Dr-Irv merged commit 9d5348e into pandas-dev:main Jun 29, 2024
13 checks passed
@JanEricNitschke
Copy link
Contributor Author

Yeah, it is mostly missing type hints or type parameters. Would it make sense to enable the pyright_strict test also in PRs, currently i made it like the others where it only runs on commits to main and not on PR creation like the other optionals.

Might make sense to also have it run here to see the number of errors getting lower on changes?

@JanEricNitschke JanEricNitschke deleted the strict-ci branch June 30, 2024 08:01
@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Jun 30, 2024

Yeah, it is mostly missing type hints or type parameters. Would it make sense to enable the pyright_strict test also in PRs, currently i made it like the others where it only runs on commits to main and not on PR creation like the other optionals.

Might make sense to also have it run here to see the number of errors getting lower on changes?

I'm hesitant to do that, because then every PR will show a failure, which can be confusing to contributors.

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 this pull request may close these issues.

2 participants