Opened 3 years ago
Closed 3 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?
Note:
See TracTickets
for help on using tickets.
In Django 4.1+ migration files are formatted using the
blackcommand if it is present on yourPATH, see docs.