chore(isort): switch from isort
to ruff
#2234
Open
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.
Towards #2232.
This PR replaces
isort
withruff
:ruff
hook has been added to pre-commitsetup.cfg
configuration disappears in favor ofpyproject.toml
Note that only
I
rule is selected, other linters (flake8, ...) can be migrated in follow-up steps.First commit updates configuration, second commit fixes import formatting to comply with
I001
rule.How this has been tested?
Successful
pre-commit
job run: https://github.com/celery/kombu/actions/runs/12990145844/job/36224652021?pr=2234Documentation
As
ruff
is installed throughpre-commit
, this change should be pretty transparent, however I can mention this change in documentation if needed.