diff --git a/qutebrowser/mainwindow/statusbar/bar.py b/qutebrowser/mainwindow/statusbar/bar.py index e6def2265..c05dbcb25 100644 --- a/qutebrowser/mainwindow/statusbar/bar.py +++ b/qutebrowser/mainwindow/statusbar/bar.py @@ -106,7 +106,8 @@ def _generate_stylesheet(): color: {{ color['%s'] }}; background-color: {{ color['%s'] }}; } - """ % (flag, flag, flag, option.format('fg'), option.format('bg')) + """ % (flag, flag, flag, # flake8: disable=S001 + option.format('fg'), option.format('bg')) return stylesheet diff --git a/tests/end2end/fixtures/testprocess.py b/tests/end2end/fixtures/testprocess.py index 913fec859..f94ec4e22 100644 --- a/tests/end2end/fixtures/testprocess.py +++ b/tests/end2end/fixtures/testprocess.py @@ -78,8 +78,8 @@ class Line: def _render_log(data, threshold=100): """Shorten the given log without -v and convert to a string.""" data = [str(d) for d in data] - is_exception = any('Traceback (most recent call last):' in line - or 'Uncaught exception' in line for line in data) + is_exception = any('Traceback (most recent call last):' in line or + 'Uncaught exception' in line for line in data) verbose = pytest.config.getoption('--verbose') if len(data) > threshold and not verbose and not is_exception: msg = '[{} lines suppressed, use -v to show]'.format(