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

TYP: run type-check job with minimal supported Python version #4140

Merged
merged 2 commits into from
Sep 23, 2022

Conversation

neutrinoceros
Copy link
Member

PR Summary

Currently type checking is unstable on main, see https://github.com/yt-project/yt/actions/runs/3107473459/jobs/5035621544
The error seems to be triggered because we request mypy to validate Python 3.7 compatibility but the latest version of numpy doesn't have that constraint. It's not clear to me why this hasn't happened before, but this patch should fix it.

@neutrinoceros neutrinoceros added blocker Highest priority level infrastructure Related to CI, versioning, websites, organizational issues, etc tests: running tests Issues with the test setup labels Sep 22, 2022
@neutrinoceros neutrinoceros marked this pull request as ready for review September 22, 2022 19:58
@matthewturk
Copy link
Member

@neutrinoceros how long do you anticipate this being in? And, are you sure we should ship the release with this?

@neutrinoceros
Copy link
Member Author

Maybe it's not okay to ship it actually... I don't know that anyone downstream relies on installing yt with the [typecheck] extras, but this would probably break them.

A less invasive solution would be to switch the type-checking env to use Python 3.7 instead. Your call :)

@matthewturk
Copy link
Member

let's try the less invasive solution

@neutrinoceros neutrinoceros changed the title TST: set an upper bound for numpy version in type check env TYP: run type-check job with minimal supported Python version Sep 23, 2022
@neutrinoceros
Copy link
Member Author

@matthewturk done !

@matthewturk matthewturk merged commit 23a35ac into yt-project:main Sep 23, 2022
@neutrinoceros neutrinoceros deleted the pin_numpy_type_check branch September 23, 2022 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker Highest priority level infrastructure Related to CI, versioning, websites, organizational issues, etc tests: running tests Issues with the test setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants