Skip to content

(🐞) Fix CI python interpreter #13168

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 3 commits into from
Jul 18, 2022
Merged

Conversation

KotlinIsland
Copy link
Contributor

@KotlinIsland KotlinIsland commented Jul 18, 2022

image
:trollface:

This change will mean that tox -e type will use your current interpreter instead of 3.7, this could be good or bad depending on how you look at it.

Also added an override in CI to not skip missing interpreters.

@KotlinIsland KotlinIsland marked this pull request as ready for review July 18, 2022 00:34
@KotlinIsland KotlinIsland changed the title Fix typecheck CI (🐞) Fix typecheck CI Jul 18, 2022
Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Huh. Thanks for catching this. Any idea why / when it broke? Also why does it work on Windows? https://github.com/python/mypy/runs/7377272863?check_suite_focus=true

Other tox environments look to be affected too, e.g. flake8 (although I feel like I've had flake8 fail on me somewhat recently).

@hauntsaninja
Copy link
Collaborator

hauntsaninja commented Jul 18, 2022

Okay, I see #13138. Still not sure why it works on Windows.

@KotlinIsland
Copy link
Contributor Author

KotlinIsland commented Jul 18, 2022

I have no idea why windows passed, probably due to some mysterious property/setting that it has and the others don't

@github-actions

This comment has been minimized.

@KotlinIsland
Copy link
Contributor Author

KotlinIsland commented Jul 18, 2022

@hauntsaninja Do we actually want to run the type check with a 3.10 interpreter? idk if that's the best idea.

@hauntsaninja
Copy link
Collaborator

hauntsaninja commented Jul 18, 2022

Running type check with 3.10 interpreter should be fine, see https://github.com/python/mypy/pull/13138/files#r922690360

@hauntsaninja
Copy link
Collaborator

We should also do something like tox-dev/tox#631 (comment)

@KotlinIsland KotlinIsland changed the title (🐞) Fix typecheck CI (🐞) Fix CI python interpreter Jul 18, 2022
@github-actions

This comment has been minimized.

@KotlinIsland
Copy link
Contributor Author

KotlinIsland commented Jul 18, 2022

Running type check with 3.10 interpreter should be fine, see https://github.com/python/mypy/pull/13138/files#r922690360

I don't think that's the best bet: playground

@github-actions

This comment has been minimized.

4 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@hauntsaninja
Copy link
Collaborator

Hmm, fair point. It's on the verge of being too late, but here you go: python/cpython#94948

@hauntsaninja
Copy link
Collaborator

Also python/cpython#94950. Got any others? :-)

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Thanks again, this lgtm! Great catch

@hauntsaninja hauntsaninja merged commit 1de7dca into python:master Jul 18, 2022
@hauntsaninja
Copy link
Collaborator

and TOX_SKIP_MISSING_INTERPRETERS=False tox -e py33 seems to work great aka fail for me locally :-)

@KotlinIsland
Copy link
Contributor Author

Also python/cpython#94950. Got any others? :-)

Pep 614
https://mypy-play.net/?mypy=latest&python=3.4&gist=bdeccf8b7851a63d3c42ccfe01d40583

@KotlinIsland
Copy link
Contributor Author

Also python/cpython#94950. Got any others? :-)

PEP 570
https://mypy-play.net/?mypy=latest&python=3.4&gist=dabf2aa9fbc255147b951f73517e108c

@KotlinIsland
Copy link
Contributor Author

@KotlinIsland
Copy link
Contributor Author

Also python/cpython#94950. Got any others? :-)

Unparenthesized unpack on return/yield
https://mypy-play.net/?mypy=latest&python=3.4&gist=3cc9d9f6a6d407b43d0722d28d33b32c

@KotlinIsland
Copy link
Contributor Author

@KotlinIsland
Copy link
Contributor Author

Also python/cpython#94950. Got any others? :-)

Parenthesized keyword arguments: https://mypy-play.net/?mypy=latest&python=3.6&gist=e11926868a9678f9ee9383be4ebceba9

@KotlinIsland
Copy link
Contributor Author

Also python/cpython#94950. Got any others? :-)

Unparenthesized lambda in comprehension:
https://mypy-play.net/?mypy=latest&python=3.8&gist=4db46ca4336e86d4393fa79f8dfa080f

@KotlinIsland
Copy link
Contributor Author

Also python/cpython#94950. Got any others? :-)

Unparenthesized assignment expression in set literal, set comprehension and sequence index: https://mypy-play.net/?mypy=latest&python=3.9&gist=c344a87c9745e47cd55ef10c71f9e923

@KotlinIsland KotlinIsland deleted the fix_CI branch July 20, 2022 13:36
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