Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ci: use Python 3.9 for mypy workflow to fix ci #2625

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

Merged
merged 2 commits into from
Feb 24, 2025

Conversation

rickeylev
Copy link
Collaborator

@rickeylev rickeylev commented Feb 24, 2025

The mypy check on CI has been failing. The problem was the combination of:

  • We were using Python 3.8
  • jpetrucciani/mypy-check@master updated to use mypy 1.15
  • mypy 1.15 dropped support for Python 3.8

To fix, use Python 3.9.

@rickeylev rickeylev changed the title ci: fix mypy on ci ci: use Python 3.11 for mypy workflow to fix ci Feb 24, 2025
@rickeylev rickeylev marked this pull request as ready for review February 24, 2025 00:33
@rickeylev rickeylev requested a review from aignas as a code owner February 24, 2025 00:33
@rickeylev rickeylev enabled auto-merge February 24, 2025 00:34
@rickeylev rickeylev requested a review from groodt February 24, 2025 00:34
@rickeylev rickeylev added this pull request to the merge queue Feb 24, 2025
@aignas aignas removed this pull request from the merge queue due to a manual request Feb 24, 2025
@aignas
Copy link
Collaborator

aignas commented Feb 24, 2025

One thing to note here is that we might break the type annotations for earlier python versions more easily if we are testing on 3.11 only. We may want to either use the previous version of GH action that is using an older mypy version instead of bumping to 3.11.

That said the new style type annotations have been here for a while, so maybe just using 3.11 is a good enough thing, but maybe the oldest supported python version would be better.

@rickeylev rickeylev added this pull request to the merge queue Feb 24, 2025
@rickeylev rickeylev removed this pull request from the merge queue due to a manual request Feb 24, 2025
github-merge-queue bot pushed a commit that referenced this pull request Feb 24, 2025
The mypy check on CI has been failing. The problem was the combination
of:
* We were using Python 3.8
* jpetrucciani/mypy-check@master updated to use mypy 1.15
* mypy 1.15 dropped support for Python 3.8

To fix, use Python 3.11.
@rickeylev rickeylev changed the title ci: use Python 3.11 for mypy workflow to fix ci ci: use Python 3.9 for mypy workflow to fix ci Feb 24, 2025
@rickeylev
Copy link
Collaborator Author

Good point. Updated to 3.9.

@rickeylev rickeylev enabled auto-merge February 24, 2025 00:59
@rickeylev rickeylev added this pull request to the merge queue Feb 24, 2025
Merged via the queue into bazel-contrib:main with commit a04b2a4 Feb 24, 2025
4 checks passed
@rickeylev rickeylev deleted the fix.mypy.ci branch February 24, 2025 02:32
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