-
Notifications
You must be signed in to change notification settings - Fork 52
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
DEV - Set a canonical default Python version (3.12) #844
DEV - Set a canonical default Python version (3.12) #844
Conversation
…' into trallard/default-python-version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering if there was any other way to solve this, but this seems reasonable.
The only ones I could find that were missed are the entries in pyproject.toml
. Do we need to worry about those?
Also the tests are failing, but I think that's from the previous PR that got merged.
This is a better way of consolidating the information. My two cents:
- name: Make sure python-version has no whitespace
shell: python
run: |
from pathlib import Path
assert Path(".python-version-default").read_text().strip() == Path(".python-version-default").read_text()
- name: Make sure python-version has no whitespace
shell: python
run: |
from pathlib import Path
assert f'- python={Path(".python-version-default").read_text().strip()}' in Path("environment.yml").read_text() |
Yep, now that you mention it pre-commit isn't hitting this file with the current configuration. Can we change it to strip trailing whitespace everywhere? I don't actually know of a single situation in which I'd want trailing whitespace. - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
files: ".*\\.py"
- id: check-added-large-files
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace |
And maybe make sure |
@peytondmurray No this is the same original error in my PR about the
My goal is to eventually just get rid of the Now if someone uses that locally then that might be out of date 🤷🏽♀️ but I see the proposed workflow as already more robust sans the end of file/whitespace thingy. |
Why would we need to change these? These are the Python requires |
I fixed the pre-commit hooks, so there should be no need to add extra steps.
Since there is no standard, I used |
I'm totally fine with |
Ok will merge. |
e8956f4
into
trallard/update-dev-environments
Closes #842. |
This is another stack to #838 and intended to be merged after #841
Description
While reviewing #841, @peytondmurray suggested bumping the default Python version used for CI, Docker images, and the like.
This PR bumps us from
3.10
to3.12
:.python-version-default
file to serve as the canonical source of truth across all the places where we set Python versions./github/workflows
to use this new file to get the canonical Python versionPull request checklist
Additional information
How to test