This is a bug 
(https://bitbucket.org/logilab/pylint/issue/461/incorrect-hanging-indent-detection-with)
that misdetects the hanging indent of the context manager. This silences
roughly 300 warnings.

Signed-off-by: Dylan Baker <[email protected]>
---
 tests/all.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/all.py b/tests/all.py
index 0da1023..c876035 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -14,6 +14,12 @@ from .py_modules.constants import TESTS_DIR, 
GENERATED_TESTS_DIR
 
 __all__ = ['profile']
 
+# Disable bad hanging indent errors in pylint
+# There is a bug in pyling which causes the profile.group_manager to be tagged
+# as bad hanging indent, even though it seems to be correct (and similar syntax
+# doesn't trigger an error)
+# pylint: disable=bad-continuation
+
 
 def add_single_param_test_set(adder, name, *params):
     for param in params:
-- 
2.2.2

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to