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. 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]> --- utils/run_pylint.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/utils/run_pylint.py b/utils/run_pylint.py index 9d5ae84..bec6e7a 100755 --- a/utils/run_pylint.py +++ b/utils/run_pylint.py @@ -83,8 +83,7 @@ def get_pylint_opts(): else: opts = disable_old - opts += ['--reports=no', '--include-ids=y'] - return opts + return opts + ['--reports=no', '--include-ids=y', '--rcfile=/dev/null'] def check_file(file_path): -- 1.7.7.3 _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
