Skip to content

remove 'target-version' from ruff config #13517

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

danieleades
Copy link
Contributor

this value is not needed when 'requires-python' version is set in pyproject.toml

@danieleades danieleades requested a review from AA-Turner April 28, 2025 11:34
@AA-Turner
Copy link
Member

Keeping it set lets us decouple dropping Python versions and running eg Pyupgrade changes.

@danieleades
Copy link
Contributor Author

Keeping it set lets us decouple dropping Python versions and running eg Pyupgrade changes.

Can you explain what you mean? I don't see how you can decouple these?

@danieleades
Copy link
Contributor Author

Just following up on this @AA-Turner -

I can't see how you can decouple pyupgrade from the 'requires python' config value (nor that would be any advantage in doing so). You cant let pyupgrade suggest syntax newer than is supported by requires-python or you invalidate it. As soon as you do upgrade requires-python, there's no reason not to take advantage of newer syntax immediately.

I think accidentally misaligning the two values is a bigger risk to be honest

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.

2 participants