#35527: Support `ruff format` as a formatter alongside `black`
-------------------------------------+-------------------------------------
Reporter: Aarni | Owner: nobody
Koskela |
Type: New | Status: new
feature |
Component: Core | Version:
(Management commands) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Django already has support for plugging in code formatters
(https://github.com/django/django/blob/fa7848146738a9fe1d415ee4808664e54739eeb7/django/core/management/utils.py#L160-L175)
for generated code (templates and migrations).
The ruff (https://github.com/astral-sh/ruff) project has a 99% black-
compatible formatter (https://astral.sh/blog/the-ruff-formatter) that's
very fast and increasingly popular.
It would be useful if Django could format migrations using `ruff format`
if available.
If this is welcome, I'm happy to write a PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/35527>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701902079594b-ceb4e544-7e59-48c2-a4ca-ca291d7eab56-000000%40eu-central-1.amazonses.com.