Module: check_mk
Branch: master
Commit: 534b6dfcdf3fe576a5f2a29d7a3428dd59fa624b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=534b6dfcdf3fe5…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed May 30 11:42:10 2018 +0200
Made pylintrc compatible with newer pylint versions.
Sad story:
https://github.com/PyCQA/pylint/commit/9397a5283 fixes
https://github.com/PyCQA/pylint/issues/1024, but as a side effect, the
characters '#' and ';' act now as inline comment prefixes (see
https://docs.python.org/3/library/configparser.html#customizing-parser-beha…).
Simple portable and even more readable solution: Just use continuation
lines!
Change-Id: Icf936a44657350f601d0285a607a10a97cfa32d6
---
tests/pylint/pylintrc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/pylint/pylintrc b/tests/pylint/pylintrc
index dadd73e..5ddd7d1 100644
--- a/tests/pylint/pylintrc
+++ b/tests/pylint/pylintrc
@@ -1,6 +1,10 @@
[MASTER]
# Setup the python paths needed for our tests
-init-hook='import sys, os; test_path = os.environ.get("TEST_PATH",
os.environ["HOME"] + "/git/check_mk/tests"); sys.path.insert(0,
test_path) ; import conftest'
+init-hook=
+ import sys, os
+ test_path = os.environ.get("TEST_PATH", os.environ["HOME"] +
"/git/check_mk/tests")
+ sys.path.insert(0, test_path)
+ import conftest
#load-plugins=testlib.pylint_cmk,testlib.pylint_checker_wrong_i18n
load-plugins=testlib.pylint_cmk,testlib.pylint_checker_localization
persistent=yes