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.
Recently (a while ago to be fair, but this project wasn't really updated for a long time), ruff has introduced their own formatter, which aims to replace
black
. It is almost 1:1 compatible with black, as can be seen by the small amount of changes made to the existing code.Additionally, this also replaces
isort
with the built-in isort support inruff
. This was a feature for quite a while now, but there were some incompatibilities with isort, as not all isort settings were previously supported. That has since changed, and ruff now supports isort in the same configuration that we were using before.This therefore allows us to get rid of isort too.This is a good thing, as it shouldn't introduce any real differences to the code style, while reducing the amount of necessary tools that contributors need to be working with, and even improving speed, as ruff is faster than isort or black (although realistically, pre-commit still won't be super fast, as pyright is the significant slow-down there).
Furthermore, this PR also updates ruff lint settings in
pyproject.toml
, adding some extra rules, and more importantly, renaming now deprecated section names for configuring ruff lint (ruff.*
was changed toruff.lint.*
).Task List:
slotscheck
tool, which wasn't previously documented at all for some reason)