-
Notifications
You must be signed in to change notification settings - Fork 174
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
Drop python3.7 support #824
Conversation
Technically we're already using it in places, but it requires more changes to our requirements that I don't want to pull into this PR.
docs/pyproject.toml
Outdated
@@ -5,4 +5,4 @@ line-length = 74 | |||
|
|||
# no need for legacy stuff here in the docs! always use the latest supported |
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.
🔕 this says "latest supported", so either this should be py39 or we actually mean "oldest supported" in which case update the doc comment too
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.
This should probably be the case in pyproject.yaml
, setup.cfg
, and setup.py
as well.
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 think we only want to do it here because this is the black config specifically for code snippets in the docs where we want to use the latest-supported syntax (I think that's what the comment is referencing).
If we set it in pyproject.toml
to the latest, black could in theory introduce syntax only compatible with the newest Python we support and not the oldest Python. The same goes for mypy; it will tell you to migrate to new type definitions that don't exist on older Python versions.
💸 TL;DR
Python 3.7 is end-of-life, so we are dropping support. There are two PRs (#819, #823) which independently made similar changes, so I'm extracting them out here.
🧪 Testing Steps / Validation
No special testing.
✅ Checks