about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2020-01-15 22:04:59 +0100
committertoonn <toonn@toonn.io>2020-07-05 15:23:43 +0200
commita946dcc7529662a897c4ee986844651c674374b7 (patch)
tree798ab80671082094324a3c2c48a02b25a50be1d3
parentc58fdd0e25b30b84b2656e504281d3a908fc102b (diff)
downloadranger-a946dcc7529662a897c4ee986844651c674374b7.tar.gz
Add local pylint disables
-rw-r--r--ranger/container/directory.py1
-rw-r--r--ranger/core/actions.py3
-rw-r--r--ranger/core/fm.py2
3 files changed, 4 insertions, 2 deletions
diff --git a/ranger/container/directory.py b/ranger/container/directory.py
index 81dabb24..877584a9 100644
--- a/ranger/container/directory.py
+++ b/ranger/container/directory.py
@@ -508,6 +508,7 @@ class Directory(  # pylint: disable=too-many-instance-attributes,too-many-public
 
     def sort(self):
         """Sort the contained files"""
+        # pylint: disable=comparison-with-callable
         if self.files_all is None:
             return
 
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 42a1d2f5..db4a17c3 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -1026,7 +1026,8 @@ class Actions(  # pylint: disable=too-many-instance-attributes,too-many-public-m
         sha.update(stat_.st_mtime)
         return '{0}.jpg'.format(sha.hexdigest())
 
-    def get_preview(self, fobj, width, height):  # pylint: disable=too-many-return-statements
+    def get_preview(self, fobj, width, height):
+        # pylint: disable=too-many-return-statements,too-many-statements
         pager = self.ui.get_pager()
         path = fobj.realpath
 
diff --git a/ranger/core/fm.py b/ranger/core/fm.py
index 9461e325..c05e0925 100644
--- a/ranger/core/fm.py
+++ b/ranger/core/fm.py
@@ -77,7 +77,7 @@ class FM(Actions,  # pylint: disable=too-many-instance-attributes
         mimetypes.knownfiles.append(self.relpath('data/mime.types'))
         self.mimetypes = mimetypes.MimeTypes()
 
-    def initialize(self):
+    def initialize(self):  # pylint: disable=too-many-statements
         """If ui/bookmarks are None, they will be initialized here."""
 
         self.tabs = dict((n + 1, Tab(path)) for n, path in enumerate(self.start_paths))