about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2020-01-15 21:16:44 +0100
committertoonn <toonn@toonn.io>2020-07-05 15:23:42 +0200
commit7e85b38d8f777dfaaaec975eb2ed617634574e72 (patch)
treeb7e197a53e0a1ec33697a221052bdc867493ed34
parentcbc8177825b11843c11c353df0fa03b016a331fc (diff)
downloadranger-7e85b38d8f777dfaaaec975eb2ed617634574e72.tar.gz
Add global Pylint ignores
`no-else-break/continue/raise/return` because they're nonsense and
result in actively less readable code.

`useless-object-inheritance` because that's a py3-ism.

`import-outside-toplevel` because we use this in many places to good
effect.
-rw-r--r--.pylintrc2
-rw-r--r--ranger/config/.pylintrc2
2 files changed, 2 insertions, 2 deletions
diff --git a/.pylintrc b/.pylintrc
index 75bb7baf..b42432ca 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -8,7 +8,7 @@ max-branches=16
 
 [FORMAT]
 max-line-length = 99
-disable=locally-disabled,locally-enabled,missing-docstring,duplicate-code,fixme,cyclic-import,redefined-variable-type,stop-iteration-return
+disable=cyclic-import,duplicate-code,fixme,import-outside-toplevel,locally-disabled,locally-enabled,missing-docstring,no-else-break,no-else-continue,no-else-raise,no-else-return,redefined-variable-type,stop-iteration-return,useless-object-inheritance
 
 [TYPECHECK]
 ignored-classes=ranger.core.actions.Actions
diff --git a/ranger/config/.pylintrc b/ranger/config/.pylintrc
index 7cac80d1..cc79f97c 100644
--- a/ranger/config/.pylintrc
+++ b/ranger/config/.pylintrc
@@ -5,4 +5,4 @@ class-rgx=[a-z][a-z0-9_]{1,30}$
 [FORMAT]
 max-line-length = 99
 max-module-lines=3000
-disable=locally-disabled,locally-enabled,missing-docstring,duplicate-code,fixme
+disable=duplicate-code,fixme,import-outside-toplevel,locally-disabled,locally-enabled,missing-docstring,no-else-return