erayerdin / sos-django-template

SOS Django Template is a starter template for new Django projects with modern defaults, power cable included.
Do What The F*ck You Want To Public License
20 stars 2 forks source link

Black Formats Migrations #27

Open erayerdin opened 4 years ago

erayerdin commented 4 years ago

I don't really know it is really necessary to ignore migration files from Black. I will add some thesis and antithesis below, which I will add to in time.

Leaving migrations as is, to me, sounds better. That's mainly because migrations are generated by computer. On the other hand, developers might edit migrations by hand and they might desire formatting functionality then.

erayerdin commented 3 years ago

See here.

erayerdin commented 3 years ago

I thought this would not be a problem but there's a small issue. When using help_text on model fields, you can use multiple lines.

However, the generated migration files take the values of help_text and put it on a single line, which results in black continuously failing unless the help_texts on migration files are updated by hand.