Add pylint local excludes to silence false positives

This commit is contained in:
Kristóf Tóth
2018-03-30 18:11:38 +02:00
parent 3ae0995b95
commit d850f55b86
9 changed files with 17 additions and 5 deletions

View File

@ -50,6 +50,7 @@ class HistoryMonitor(CallbackMixin, ABC):
raise NotImplementedError
def sanitize_command(self, command):
# pylint: disable=no-self-use
return command
def _invoke_callbacks(self):

View File

@ -105,7 +105,7 @@ class SourceCodeEventHandler(TriggerlessEventHandler):
data['content'] = 'You have no permission to open that file :('
except FileNotFoundError:
data['content'] = 'This file was removed :('
except Exception:
except Exception: # pylint: disable=broad-except
data['content'] = 'Failed to read file :('
return data
@ -113,7 +113,7 @@ class SourceCodeEventHandler(TriggerlessEventHandler):
self.monitor.ignore = self.monitor.ignore + 1
try:
self.filemanager.file_contents = data['content']
except Exception:
except Exception: # pylint: disable=broad-except
LOG.exception('Error writing file!')
del data['content']
return data

View File

@ -29,7 +29,7 @@ class TerminadoMiniServer:
def pty(self):
return self.term_manager.terminal.ptyproc
class ResetterTermSocket(TermSocket):
class ResetterTermSocket(TermSocket): # pylint: disable=abstract-method
def check_origin(self, origin):
return True