diff --git a/mknodes/info/pyproject.py b/mknodes/info/pyproject.py index 6ab8bad0..b2b87336 100644 --- a/mknodes/info/pyproject.py +++ b/mknodes/info/pyproject.py @@ -89,6 +89,8 @@ def package_repos(self) -> list[installmethods.InstallMethodStr]: @property def docstring_style(self) -> str | None: """Return the style used for docstring.""" + if convention := self.tool["pydocstyle"].get("convention"): + return convention return self.mknodes_section.get("docstring-style") @property