Skip to content

Commit

Permalink
Merge pull request #697 from prospector-dev/fix-max-line-length
Browse files Browse the repository at this point in the history
Fix max-line-length in PyLint
  • Loading branch information
sbrunner authored Oct 31, 2024
2 parents e8137d6 + 81e9e1b commit ddaee2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prospector/tools/pylint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ddaee2c

Please sign in to comment.