Simplify print statements
This commit is contained in:
1 parent
e01f294d4f
commit
c048bdf745
1 file changed
+5
-15
@@ -242,22 +242,12 @@ class MigrationLinter(object):
|
|||||||
print(warn_str)
|
print(warn_str)
|
||||||
|
|
||||||
def print_summary(self):
|
def print_summary(self):
|
||||||
print("")
|
print()
|
||||||
print("*** Summary ***")
|
print("*** Summary ***")
|
||||||
print(
|
print("Valid migrations: {}/{}".format(self.nb_valid, self.nb_total))
|
||||||
(
|
print("Erroneous migrations: {}/{}".format(self.nb_erroneous, self.nb_total))
|
||||||
"Valid migrations: {1}/{0} \n"
|
print("Migrations with warnings: {}/{}".format(self.nb_warnings, self.nb_total))
|
||||||
"Erroneous migrations: {2}/{0} \n"
|
print("Ignored migrations: {}/{}".format(self.nb_ignored, self.nb_total))
|
||||||
"Migrations with warnings: {3}/{0} \n"
|
|
||||||
"Ignored migrations: {4}/{0}"
|
|
||||||
).format(
|
|
||||||
self.nb_total,
|
|
||||||
self.nb_valid,
|
|
||||||
self.nb_erroneous,
|
|
||||||
self.nb_warnings,
|
|
||||||
self.nb_ignored,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def has_errors(self):
|
def has_errors(self):
|
||||||
|
|||||||
Reference in new issue
Block a user