lint: Remove zerver/migrations from main exclude list.

This commit is contained in:
Tim Abbott 2016-12-27 19:43:43 -08:00
parent ab89664d90
commit f46d99ba85
2 changed files with 2 additions and 3 deletions

View File

@ -26,7 +26,6 @@ puppet/apt/.forge-release
puppet/apt/README.md puppet/apt/README.md
static/locale static/locale
static/third static/third
zerver/migrations
zproject/settings.py zproject/settings.py
zproject/test_settings.py zproject/test_settings.py
""".split() """.split()
@ -155,7 +154,7 @@ def build_custom_checkers(by_lang):
traceback.print_exc() traceback.print_exc()
if (max_length is not None and len(line) > max_length and if (max_length is not None and len(line) > max_length and
'# type' not in line and 'test' not in fn and 'example' not in fn and '# type' not in line and 'test' not in fn and 'example' not in fn and
"#ignorelongline" not in line): "#ignorelongline" not in line and 'migrations' not in fn):
print("Line too long (%s) at %s line %s: %s" % (len(line), fn, i+1, line_newline_stripped)) print("Line too long (%s) at %s line %s: %s" % (len(line), fn, i+1, line_newline_stripped))
lastLine = line lastLine = line
if lineFlag and '\n' not in lastLine: if lineFlag and '\n' not in lastLine:

View File

@ -27,7 +27,7 @@ def set_string_id_using_domain(apps, schema_editor):
continue continue
except IntegrityError: except IntegrityError:
pass pass
raise RuntimeError("Unable to find a good string_id for realm %s" % realm) raise RuntimeError("Unable to find a good string_id for realm %s" % (realm,))
class Migration(migrations.Migration): class Migration(migrations.Migration):