Skip to content

Automatic check of docstring parameters/returns based on function/class signature via pre-commit hook (pydoclint) #18

@adamamer20

Description

@adamamer20

Due to type hinting being so extensive and APIs currently being subject to substantial changes, it would be useful to have a pre-commit hook that deals with the mismatch between type hints, parameters/attribute names defined in the function/class signature and in the docstring. This would ensure that the documentation is up to date.I tried searching online but couldn't find any existing tool. However, I found a small implementation using ast in this post.
@rht do you know if something similar exists?

Metadata

Metadata

Assignees

Labels

ciChanges to CI configuration files and scripts.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions