Fix lint
This commit is contained in:
parent
7cb32dca07
commit
9c67239847
@ -65,9 +65,12 @@ def main():
|
||||
toxinidir,
|
||||
]
|
||||
|
||||
args = (['--disable={}'.format(','.join(disabled)),
|
||||
'--ignored-modules=helpers,pytest,PyQt5'] +
|
||||
sys.argv[2:] + files)
|
||||
args = [
|
||||
'--disable={}'.format(','.join(disabled)),
|
||||
'--ignored-modules=helpers,pytest,PyQt5',
|
||||
r'--ignore-long-lines=(<?https?://|^# Copyright 201\d)|^ *def [a-z]',
|
||||
r'--method-rgx=[a-z_][A-Za-z0-9_]{1,100}$',
|
||||
] + sys.argv[2:] + files
|
||||
env = os.environ.copy()
|
||||
env['PYTHONPATH'] = os.pathsep.join(pythonpath)
|
||||
|
||||
|
@ -166,9 +166,7 @@ def webkit_tab(qtbot, tab_registry, cookiejar_and_cache, mode_manager,
|
||||
private=False)
|
||||
vbox.addWidget(tab)
|
||||
# to make sure container isn't GCed
|
||||
# pylint: disable=attribute-defined-outside-init
|
||||
tab.container = container
|
||||
# pylint: enable=attribute-defined-outside-init
|
||||
|
||||
with qtbot.waitExposed(container):
|
||||
container.show()
|
||||
|
@ -135,8 +135,7 @@ class TestBlock:
|
||||
caret.move_to_prev_word()
|
||||
selection.check("drei")
|
||||
|
||||
def test_moving_back_to_the_start_of_prev_block_with_sel(self,
|
||||
caret, selection):
|
||||
def test_moving_back_to_the_start_of_prev_block_with_sel(self, caret, selection):
|
||||
caret.move_to_end_of_next_block(2)
|
||||
selection.toggle()
|
||||
caret.move_to_start_of_prev_block()
|
||||
@ -153,8 +152,7 @@ class TestBlock:
|
||||
caret.move_to_next_word()
|
||||
selection.check("eins ")
|
||||
|
||||
def test_moving_to_the_start_of_next_block_with_sel(self,
|
||||
caret, selection):
|
||||
def test_moving_to_the_start_of_next_block_with_sel(self, caret, selection):
|
||||
selection.toggle()
|
||||
caret.move_to_start_of_next_block()
|
||||
selection.check("one two three\n")
|
||||
@ -290,8 +288,7 @@ class TestSearch:
|
||||
|
||||
@pytest.mark.qtbug60673
|
||||
@pytest.mark.no_xvfb
|
||||
def test_yanking_a_searched_line(
|
||||
self, caret, selection, mode_manager, callback_checker, web_tab, qtbot):
|
||||
def test_yanking_a_searched_line(self, caret, selection, mode_manager, callback_checker, web_tab, qtbot):
|
||||
web_tab.show()
|
||||
mode_manager.leave(usertypes.KeyMode.caret)
|
||||
|
||||
@ -304,8 +301,7 @@ class TestSearch:
|
||||
|
||||
@pytest.mark.qtbug60673
|
||||
@pytest.mark.no_xvfb
|
||||
def test_yanking_a_searched_line_with_multiple_matches(
|
||||
self, caret, selection, mode_manager, callback_checker, web_tab, qtbot):
|
||||
def test_yanking_a_searched_line_with_multiple_matches(self, caret, selection, mode_manager, callback_checker, web_tab, qtbot):
|
||||
web_tab.show()
|
||||
mode_manager.leave(usertypes.KeyMode.caret)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user