mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 21:35:12 +00:00
Add pylint local excludes to silence false positives
This commit is contained in:
@ -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):
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user