From 81e9e1bda07c59133c91aa97444a54f735857ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 31 Oct 2024 13:24:48 +0100 Subject: [PATCH] Fix max-line-length in PyLint --- prospector/tools/pylint/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prospector/tools/pylint/__init__.py b/prospector/tools/pylint/__init__.py index 9d270160..6af3122d 100644 --- a/prospector/tools/pylint/__init__.py +++ b/prospector/tools/pylint/__init__.py @@ -90,7 +90,9 @@ def _prospector_configure(self, prospector_config: "ProspectorConfig", linter: P continue for option in checker.options: if max_line_length is not None and option[0] == "max-line-length": - checker.set_option("max-line-length", max_line_length) + checker._arguments_manager.set_option( # pylint: disable=protected-access + "max-line-length", max_line_length + ) return errors def _error_message(self, filepath: Union[str, Path], message: str) -> Message: