[Fixed]-Why are migrations files often excluded from code formatting?

8๐Ÿ‘

โœ…

I bit the bullet and applied Black to my migrations files, progressively across half a dozen django projects.

No problems at all, everything deployed in production for months now.

So the answer is: No reason at all why not to do this, and I think migrations files should be included, so that reading them is a consistent experience with the rest of the project.

๐Ÿ‘คthclark

0๐Ÿ‘

You should rarely if ever, need to edit migration files. Because of that, it makes sense to exclude from the already agreed upon code layout of the files.

๐Ÿ‘คArthur Choate

Leave a comment