utils/run_pylint.py: Prevent use of ~/.pylintrc by pylint
By default the pylint module seems to be picking up the user's
~/.pylintrc file, which could be configured to something very
different from autotest standards.
This change makes sure no local rc file is used.
TEST=manual
With a conflicting ~/.pylintrc present, before this change executing
utils/run_pylint on any autotest Python source file was causing tons
of errors, with the change the false positives are gone.
Signed-off-by: Vadim Bendebury <[email protected]>
diff --git a/utils/run_pylint.py b/utils/run_pylint.py
index 9d5ae84..16f0715 100755
--- a/utils/run_pylint.py
+++ b/utils/run_pylint.py
@@ -83,7 +83,7 @@ def get_pylint_opts():
else:
opts = disable_old
- opts += ['--reports=no', '--include-ids=y']
+ return opts + ['--reports=no', '--include-ids=y', '--rcfile=/dev/null']
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel