From 805e43cf9710ed5aef6443f97e94fff25cabc966 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 17 May 2022 12:02:20 +0200 Subject: [PATCH] WIP: Avoid line-too-long TODO: Revert once we use black --- .pylintrc | 3 ++- tests/unit/keyinput/key_data.py | 2 +- tests/unit/misc/userscripts/test_qute_lastpass.py | 2 +- tests/unit/utils/test_urlmatch.py | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.pylintrc b/.pylintrc index 47d3a163d..736a8a957 100644 --- a/.pylintrc +++ b/.pylintrc @@ -72,7 +72,8 @@ no-docstring-rgx=(^_|^main$) class-const-naming-style = snake_case [FORMAT] -max-line-length=88 +# FIXME:qt6 down to 88 again once we use black +max-line-length=190 ignore-long-lines=(. -# pylint: disable=line-too-long +# FIXME:qt6: disable=line-too-long """Data used by test_keyutils.py to test all keys.""" diff --git a/tests/unit/misc/userscripts/test_qute_lastpass.py b/tests/unit/misc/userscripts/test_qute_lastpass.py index ebd9a7591..479885def 100644 --- a/tests/unit/misc/userscripts/test_qute_lastpass.py +++ b/tests/unit/misc/userscripts/test_qute_lastpass.py @@ -203,7 +203,7 @@ class TestQuteLastPassMain: exit_code = qute_lastpass.main(arguments_mock) assert exit_code == qute_lastpass.ExitCodes.FAILURE - # pylint: disable=line-too-long + # FIXME:qt6: disable=line-too-long stderr_mock.assert_called_with( "LastPass CLI returned for www.example.com - Error: Could not find decryption key. Perhaps you need to login with `lpass login`.") qutecommand_mock.assert_not_called() diff --git a/tests/unit/utils/test_urlmatch.py b/tests/unit/utils/test_urlmatch.py index 9d151a942..9d625f827 100644 --- a/tests/unit/utils/test_urlmatch.py +++ b/tests/unit/utils/test_urlmatch.py @@ -37,7 +37,7 @@ from qutebrowser.qt.core import QUrl from qutebrowser.utils import urlmatch -# pylint: disable=line-too-long +# FIXME:qt6: disable=line-too-long @pytest.mark.parametrize('pattern, error', [