Skip to content

Commit

Permalink
feat: check pydocstyle toml section for docstring style
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Oct 21, 2023
1 parent 6a24895 commit d4b102d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mknodes/info/pyproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4b102d

Please sign in to comment.