Opened 2 years ago

Closed 2 years ago

#33761 closed New feature (invalid)

Format migrations using black

Reported by: Neil Panchal Owned by: nobody
Component: Migrations Version: dev
Severity: Normal Keywords: black, formatting, migrations
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Now that Django has adopted black as the source code formatter, are there any plans for formatting Django migrations with black?

Everytime I run makemigrations, I have to manually format them with black. IMO, we should look at generating and formatting migrations using black.

Thoughts?

Change History (1)

comment:1 by Mariusz Felisiak, 2 years ago

Resolution: invalid
Status: newclosed

In Django 4.1+ migration files are formatted using the black command if it is present on your PATH, see docs.

Note: See TracTickets for help on using tickets.
Back to Top