Remove some pylint occurences

This commit is contained in:
Bastian Germann 2019-09-18 23:35:47 +02:00
parent 7e4a586a97
commit 95a056e504
4 changed files with 2 additions and 5 deletions

1
.gitignore vendored
View File

@ -18,7 +18,6 @@
.idea .idea
.kdev4 .kdev4
.komodotools .komodotools
.pylint.d
.pytest_cache .pytest_cache
.vscode .vscode
OpenLP.egg-info OpenLP.egg-info

View File

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
# pylint: disable=logging-format-interpolation
########################################################################## ##########################################################################
# OpenLP - Open Source Lyrics Projection # # OpenLP - Open Source Lyrics Projection #

View File

@ -1152,7 +1152,7 @@ class SlideController(QtWidgets.QWidget, LogMixin, RegistryProperties):
# done by the thread holding the lock. If it is a "start" slide, we must wait for the lock, but only for 0.2 # done by the thread holding the lock. If it is a "start" slide, we must wait for the lock, but only for 0.2
# seconds, since we don't want to cause a deadlock # seconds, since we don't want to cause a deadlock
timeout = 0.2 if start else -1 timeout = 0.2 if start else -1
if not self.slide_selected_lock.acquire(start, timeout): # pylint: disable=too-many-function-args if not self.slide_selected_lock.acquire(start, timeout):
if start: if start:
self.log_debug('Could not get lock in slide_selected after waiting %f, skip to avoid deadlock.' self.log_debug('Could not get lock in slide_selected after waiting %f, skip to avoid deadlock.'
% timeout) % timeout)

View File

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
# pylint: disable=protected-access
########################################################################## ##########################################################################
# OpenLP - Open Source Lyrics Projection # # OpenLP - Open Source Lyrics Projection #
@ -895,7 +894,7 @@ class TestSearchWorker(TestCase, TestMixin):
# WHEN: The start() method is called # WHEN: The start() method is called
with patch.object(worker, 'found_song') as mocked_found_song: with patch.object(worker, 'found_song') as mocked_found_song:
worker._found_song_callback(song) # pylint: disable=protected-access worker._found_song_callback(song)
# THEN: The "found_song" signal should have been emitted # THEN: The "found_song" signal should have been emitted
mocked_found_song.emit.assert_called_with(song) mocked_found_song.emit.assert_called_with(song)