Should DRF consider migrating from Flake8 + isort to Ruff? #9827
Replies: 2 comments
-
|
(I am not a maintainer)
Usually I am not in favor of the "let's change tool X for Y because Y is the new shiny toy", but:
Given that replacing all these tools fur ruff is a few line diff PR with the right ruff options to conserve the current behavior, I would suggest to do it. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, I like ruff and I moved my other projects to it. As you said, the main problem with migrating is the formatting part which would create a huge diff as DRF code style is a fair bit different from black/ruff style of formatting. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I wanted to open a small discussion around the idea of moving Django REST Framework’s linting setup to Ruff, mainly to understand if maintainers think this direction makes sense.
Right now DRF uses a combination of:
Ruff can cover most of these in a single tool, which could simplify configuration and speed up linting in both local development and CI.
This is not a proposal for a PR yet, especially because a full migration would create a large diff, and I don’t want to do anything without maintainers agreeing on the idea first. At this point, I’m just trying to understand:
I’m happy to help or prepare a draft plan if the idea seems useful, but only if maintainers feel this is a direction worth exploring.
Would love to hear your thoughts!
Beta Was this translation helpful? Give feedback.
All reactions