Skip to content

Conversation

@ShaharNaveh
Copy link
Contributor

Follow up on #21119 (comment)


PATH = Path("crates") / "ruff_python_stdlib" / "src" / "sys" / "known_stdlib.rs"
CRATES_PATH = Path(__file__).parents[1] / "crates"
PATH = CRATES_PATH / "ruff_python_stdlib" / "src" / "sys" / "known_stdlib.rs"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I got an error when running from the scripts directory.
I can revert this if it's an issue.

@MichaReiser
Copy link
Member

Thank you.

I'm not sure if it makes sense to update the stdlib if Ruff doesn't have support for Python 3.15. I think I'd prefer to wait for when we add Python 3.15 support once the beta is closer, to ensure that we don't ship with a stale stdlib for 3.15

@ShaharNaveh
Copy link
Contributor Author

ShaharNaveh commented Nov 8, 2025

Thank you.

I'm not sure if it makes sense to update the stdlib if Ruff doesn't have support for Python 3.15. I think I'd prefer to wait for when we add Python 3.15 support once the beta is closer, to ensure that we don't ship with a stale stdlib for 3.15

Sure, feel free to close this PR if you think it's just noise in the PR pool ATM.


What is the approach when supporting a new Python version? When will users can set python-version = "PY315" for example? (even if it's still considered experimental)

Does ruff have a contributer's guide on when to implement support for new Python versions?

@MichaReiser
Copy link
Member

What is the approach when supporting a new Python version? When will users can set python-version = "PY315" for example? (even if it's still considered experimental)

In the past, we waited for the new Python version to be closer to beta to avoid implementing features that don't end up being stabilized (or have to change the semantics multiple times).

Does ruff have a contributer's guide on when to implement support for new Python versions?

We don't have a contributor guide for adding support for a new Python version but you can search for the python314 label to see the relevant PRs for adding Python 3.14. That should give you a good idea on how we go about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants