Skip to content
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

Accept a PEP 440 version specifier for required-version #10216

Merged
merged 1 commit into from Mar 3, 2024

Conversation

charliermarsh
Copy link
Member

Summary

Allows required-version to be set with a version specifier, like >=0.3.1.

If a single version is provided, falls back to assuming ==0.3.1, for backwards compatibility.

Closes #10192.

@charliermarsh
Copy link
Member Author

Needs tests.

@charliermarsh charliermarsh marked this pull request as draft March 3, 2024 21:15
Copy link
Contributor

github-actions bot commented Mar 3, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@charliermarsh charliermarsh force-pushed the charlie/req branch 4 times, most recently from 9270b13 to 1b95d07 Compare March 3, 2024 23:29
@charliermarsh charliermarsh marked this pull request as ready for review March 3, 2024 23:32
@charliermarsh charliermarsh merged commit 84bf333 into main Mar 3, 2024
17 checks passed
@charliermarsh charliermarsh deleted the charlie/req branch March 3, 2024 23:43
@charliermarsh charliermarsh added the configuration Related to settings and configuration label Mar 3, 2024
nkxxll pushed a commit to nkxxll/ruff that referenced this pull request Mar 10, 2024
)

## Summary

Allows `required-version` to be set with a version specifier, like
`>=0.3.1`.

If a single version is provided, falls back to assuming `==0.3.1`, for
backwards compatibility.

Closes astral-sh#10192.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration Related to settings and configuration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support range in required-version setting
1 participant