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

Update Python versions and dependencies in AST GitHub Actions #503

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

jakelishman
Copy link
Contributor

Summary

This normalise the AST action to only run the style and lint checks once, on the newest Python version, so that differences between the linters and formatters that might arise from bugfixes not backported to the last supported package version for the oldest Python do not cause spurious failures between the two branches. This notably happened with black, where the latest version compatible with Python 3.7 did not contain a bugfix that later versions did have access to.

Further, this updates the latest supported version of Python to 3.12, which matches reality, since previously we had left it at 3.10.

Details and comments

This normalise the AST action to only run the style and lint checks
once, on the newest Python version, so that differences between the
linters and formatters that might arise from bugfixes not backported to
the last supported package version for the oldest Python do not cause
spurious failures between the two branches.  This notably happened with
`black`, where the latest version compatible with Python 3.7 did not
contain a bugfix that later versions did have access to.

Further, this updates the latest supported version of Python to 3.12,
which matches reality, since previously we had left it at 3.10.
@jakelishman
Copy link
Contributor Author

The docs-build failure in this PR is fixed by #502.

Copy link
Contributor

@jlapeyre jlapeyre left a comment

Choose a reason for hiding this comment

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

Thanks

@jlapeyre jlapeyre merged commit 7a36d40 into openqasm:main Dec 15, 2023
9 of 10 checks passed
@jakelishman jakelishman deleted the fix-ast-workflow branch December 15, 2023 09:02
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.

None yet

2 participants