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

chore(isort): switch from isort to ruff #2234

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stegayet
Copy link
Contributor

@stegayet stegayet commented Jan 27, 2025

Towards #2232.

This PR replaces isort with ruff:

  • ruff hook has been added to pre-commit
  • setup.cfg configuration disappears in favor of pyproject.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=2234

Documentation

As ruff is installed through pre-commit, this change should be pretty transparent, however I can mention this change in documentation if needed.

This commit replaces `isort` with `ruff`:
- `ruff` hook has been added to pre-commit
- `setup.cfg` configuration disappears in favor of `pyproject.toml`

Note that only `I` rule is selected, other linters (flake8, ...) can be migrated in follow-up steps.
Copy link

codecov bot commented Jan 27, 2025

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Project coverage is 81.51%. Comparing base (a0175b0) to head (a2cc6ad).

Files with missing lines Patch % Lines
kombu/transport/confluentkafka.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2234   +/-   ##
=======================================
  Coverage   81.50%   81.51%           
=======================================
  Files          77       77           
  Lines        9524     9523    -1     
  Branches     1152     1152           
=======================================
  Hits         7763     7763           
+ Misses       1569     1568    -1     
  Partials      192      192           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant