diff --git a/qutebrowser/mainwindow/mainwindow.py b/qutebrowser/mainwindow/mainwindow.py index 11d77f4c4..062ff0d95 100644 --- a/qutebrowser/mainwindow/mainwindow.py +++ b/qutebrowser/mainwindow/mainwindow.py @@ -79,8 +79,8 @@ def get_window(via_ipc, force_window=False, force_tab=False, if open_target not in ('tab-silent', 'tab-bg-silent'): window_to_raise = window if window_to_raise is not None: - window_to_raise.setWindowState(window.windowState() & - ~Qt.WindowMinimized | Qt.WindowActive) + window_to_raise.setWindowState( + window.windowState() & ~Qt.WindowMinimized | Qt.WindowActive) window_to_raise.raise_() window_to_raise.activateWindow() QApplication.instance().alert(window_to_raise) diff --git a/qutebrowser/utils/urlutils.py b/qutebrowser/utils/urlutils.py index b20e833c8..2db14a18b 100644 --- a/qutebrowser/utils/urlutils.py +++ b/qutebrowser/utils/urlutils.py @@ -217,9 +217,9 @@ def _has_explicit_scheme(url): # after the scheme delimiter. Since we don't know of any URIs # using this and want to support e.g. searching for scoped C++ # symbols, we treat this as not an URI anyways. - return (url.isValid() and url.scheme() - and not url.path().startswith(' ') - and not url.path().startswith(':')) + return (url.isValid() and url.scheme() and + not url.path().startswith(' ') and + not url.path().startswith(':')) def is_special_url(url): diff --git a/setup.cfg b/setup.cfg index d417f3c1f..d7bb138a2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,7 +6,6 @@ exclude = .venv,.hypothesis,.git,__pycache__,resources.py # E501: Line too long # E402: module level import not at top of file # E266: too many leading '#' for block comment -# W503: line break before binary operator # F401: Unused import -ignore = E128,E226,E265,E501,E402,E266,W503,F401 +ignore = E128,E226,E265,E501,E402,E266,F401 max-complexity = 12