﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24275	Migration files should comply with PEP8	Sambhav Satija	Sambhav Satija	"The migration statements generated by the [https://github.com/django/django/blob/master/django/db/migrations/writer.py#L123 MigrationWriter] should preferably be PEP8 compatible. This would ensure that when people run flake8 on their apps, they do not stumble unnecessarily due to warnings generated in the migration files. [[BR]]
In order to correct this, I've aimed to create a new class [https://github.com/darkryder/django/commit/405413a94571e52f20841f15480ee6fa0d35b06a#diff-7d0e679c6018bf032defd15cf12a2520R41 CleanWriter] that MigrationWriter can inherit from, and can use its [https://github.com/darkryder/django/commit/405413a94571e52f20841f15480ee6fa0d35b06a#diff-7d0e679c6018bf032defd15cf12a2520R111 clean] function before finally preparing the migration file. For lines which still can't be fixed, a `# NOQA` comment should be appended.[[BR]]
Currently there are a couple of bugs in the CleanWriter class, which if this ticket gets accepted, I'll fix and then create a PR. "	Cleanup/optimization	closed	Migrations	dev	Normal	wontfix	Migration, PEP8	f.ssat95@…	Accepted	1	0	0	0	0	0
