Standalone ruff checks + Automatically detect requires-python #168
+18
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It recently crossed my mind that you don't need to run Ruff on every os and Python version. In fact, you don't even need to have Python installed to run Ruff !
Running it through pytest everytime seems not only wasteful, but has caused issues (between version desync, huge logs spam, and not as clear errors)
astral-sh/ruff-action@v3
automatically finds the version of Ruff to install and run from looking at apyproject.toml
'sproject.optional-dependencies
anddependency-groups
.Since no other test uses Ruff, no need to install it, so I split it into its own extra.
This PR also bumps Ruff's lower bound to 0.11, where the detection of
requires-python
is automated.