[Piglit] [RFC v2 39/39] all.py: disable pylint's bad-continuation error
Dylan Baker
baker.dylan.c at gmail.com
Mon Feb 2 17:37:44 PST 2015
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 <dylanx.c.baker at intel.com>
---
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
More information about the Piglit
mailing list