Fix lint
This commit is contained in:
parent
45ce430774
commit
aec1cf3842
@ -233,7 +233,8 @@ def check(fileobj, perfect_files):
|
|||||||
if filename in perfect_src_files and is_bad:
|
if filename in perfect_src_files and is_bad:
|
||||||
text = "{} has {}% line and {}% branch coverage!".format(
|
text = "{} has {}% line and {}% branch coverage!".format(
|
||||||
filename, line_cov, branch_cov)
|
filename, line_cov, branch_cov)
|
||||||
messages.append(Message(MsgType.insufficent_coverage, filename, text))
|
messages.append(Message(MsgType.insufficent_coverage, filename,
|
||||||
|
text))
|
||||||
elif (filename not in perfect_src_files and not is_bad and
|
elif (filename not in perfect_src_files and not is_bad and
|
||||||
filename not in WHITELISTED_FILES):
|
filename not in WHITELISTED_FILES):
|
||||||
text = ("{} has 100% coverage but is not in "
|
text = ("{} has 100% coverage but is not in "
|
||||||
@ -263,8 +264,8 @@ def main_check():
|
|||||||
subprocess.check_call([sys.executable, '-m', 'coverage', 'report',
|
subprocess.check_call([sys.executable, '-m', 'coverage', 'report',
|
||||||
'--show-missing', '--include', filters])
|
'--show-missing', '--include', filters])
|
||||||
print()
|
print()
|
||||||
print("To debug this, run 'tox -e py35-cov' (or py34-cov) locally and check "
|
print("To debug this, run 'tox -e py35-cov' (or py34-cov) locally and "
|
||||||
"htmlcov/index.html")
|
"check htmlcov/index.html")
|
||||||
print("or check https://codecov.io/github/The-Compiler/qutebrowser")
|
print("or check https://codecov.io/github/The-Compiler/qutebrowser")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user