-
Notifications
You must be signed in to change notification settings - Fork 1
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
Upgrade python to 3.11 #1030
Merged
Merged
Upgrade python to 3.11 #1030
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
08f5788
Upgrade poetry to 1.8.3
nickmoreton 5462f68
Bump Python version to 3.11 and favour the bookworm image
nickmoreton 344c72e
Upgrade PyYAML. It was preventing building the docker image
nickmoreton 5371d08
Upgrade dependencies reported by trivy
nickmoreton 67df1ad
Upgrade django-upgrade
nickmoreton f976ad2
Add pyupgrade to pre-commit hooks
nickmoreton 5125c04
Add poetry hooks to pre-commit config
nickmoreton e452fb4
Clean up old upgrade notes
nickmoreton 477f527
Add python and Django upgrade instructions to the upgrading documenta…
nickmoreton c825324
Update sentry-sdk
nickmoreton d6c9d41
Update README.md to reflect Python 3.11 requirement
nickmoreton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
default_language_version: | ||
node: 18.4.0 | ||
python: python3.8 | ||
python: python3.11 | ||
repos: | ||
- repo: https://github.com/python/black | ||
rev: 24.4.0 | ||
|
@@ -45,7 +45,19 @@ repos: | |
- [email protected] | ||
- [email protected] | ||
- repo: https://github.com/adamchainz/django-upgrade | ||
rev: 1.16.0 | ||
rev: 1.20.0 | ||
hooks: | ||
- id: django-upgrade | ||
args: [--target-version, '4.2'] # Replace with Django version | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.17.0 | ||
hooks: | ||
- id: pyupgrade | ||
- repo: https://github.com/python-poetry/poetry | ||
rev: '1.8.3' # keep version in sync with version installed in the Dockerfile | ||
hooks: | ||
- id: poetry-check | ||
- id: poetry-lock | ||
# Never update dependencies and only run on changes to pyproject.toml | ||
args: [--no-update] | ||
files: ^pyproject.toml$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.8.6 | ||
3.11 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
👌 it's nice that we are not locking down to a specific patch version. This will capture whatever 3.11.x version is availble.