Skip to content

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

Merged
charliermarsh merged 1 commit into
mainfrom
charlie/req
Mar 3, 2024
Merged

Accept a PEP 440 version specifier for required-version#10216
charliermarsh merged 1 commit into
mainfrom
charlie/req

Conversation

@charliermarsh

Copy link
Copy Markdown
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
Copy Markdown
Member Author

Needs tests.

@charliermarsh charliermarsh marked this pull request as draft March 3, 2024 21:15
@github-actions

github-actions Bot commented Mar 3, 2024

Copy link
Copy Markdown
Contributor

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
@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