diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ff6169c..a0cc9c12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Support for Python 3.9 in CI. +### Fixed + +- Fix call to updated restructuredtext-lint lint_file. (#556) + - The minimum supported version of restructuredtext-lint is now 2.0.0. + ### Updated - Use `|` (pipe) syntax for type hints. diff --git a/pyproject.toml b/pyproject.toml index db34827b..cb88a60c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ dependencies = [ "pyflakes", "pylint", "pyright", - "restructuredtext-lint", + "restructuredtext-lint>=2", "rstcheck", "ruff>=0.0.237", "sphinx", diff --git a/src/statick_tool/plugins/tool/rstlint.py b/src/statick_tool/plugins/tool/rstlint.py index e7295e21..35ce4438 100644 --- a/src/statick_tool/plugins/tool/rstlint.py +++ b/src/statick_tool/plugins/tool/rstlint.py @@ -57,7 +57,7 @@ def scan(self, package: Package, level: str) -> list[Issue] | None: total_output: list[SystemMessage] = [] for src in files: - output = restructuredtext_lint.lint_file(src, None, flags) + output = restructuredtext_lint.lint_file(src, flags) total_output.extend(output) for output in total_output: