diff options
Diffstat (limited to 'buildscripts/linter/pylint.py')
-rw-r--r-- | buildscripts/linter/pylint.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/buildscripts/linter/pylint.py b/buildscripts/linter/pylint.py index 056465501d8..12dbcfdf6d3 100644 --- a/buildscripts/linter/pylint.py +++ b/buildscripts/linter/pylint.py @@ -15,9 +15,7 @@ class PyLintLinter(base.LinterBase): def __init__(self): # type: () -> None """Create a pylint linter.""" - self._rc_file = os.path.join( - os.path.normpath(git.get_base_dir()), "buildscripts", ".pylintrc") - super(PyLintLinter, self).__init__("pylint", "pylint 1.6.5") + super(PyLintLinter, self).__init__("pylint", "pylint 1.8.3") def get_lint_version_cmd_args(self): # type: () -> List[str] @@ -27,10 +25,4 @@ class PyLintLinter(base.LinterBase): def get_lint_cmd_args(self, file_name): # type: (str) -> List[str] """Get the command to run a linter.""" - # pylintrc only searches parent directories if it is a part of a module, and since our code - # is split across different modules, and individual script files, we need to specify the - # path to the rcfile. - # See https://pylint.readthedocs.io/en/latest/user_guide/run.html - return [ - "--rcfile=%s" % (self._rc_file), "--output-format", "msvs", "--reports=n", file_name - ] + return ["--output-format=msvs", "--reports=n", file_name] |