obey max line length
This commit is contained in:
1 parent
44a0c83897
commit
12d0b7e9be
1 file changed
+2
-1
@@ -92,12 +92,13 @@ class MigrationLinter(object):
|
|||||||
def lint_migration(self, migration):
|
def lint_migration(self, migration):
|
||||||
app_label = migration.app_label
|
app_label = migration.app_label
|
||||||
migration_name = migration.name
|
migration_name = migration.name
|
||||||
|
operations = migration.operations
|
||||||
print("({0}, {1})... ".format(app_label, migration_name), end="")
|
print("({0}, {1})... ".format(app_label, migration_name), end="")
|
||||||
self.nb_total += 1
|
self.nb_total += 1
|
||||||
|
|
||||||
md5hash = self.get_migration_hash(app_label, migration_name)
|
md5hash = self.get_migration_hash(app_label, migration_name)
|
||||||
|
|
||||||
if self.should_ignore_migration(app_label, migration_name, migration.operations):
|
if self.should_ignore_migration(app_label, migration_name, operations):
|
||||||
print("IGNORE")
|
print("IGNORE")
|
||||||
self.nb_ignored += 1
|
self.nb_ignored += 1
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in new issue
Block a user