- Fixed
- Fixed a bug in checking type hints when the function signature only contains star arguments
- Full diff
- Changed
- Replaced the
--check-type-hint
option with two new options:--type-hints-in-docstring
and--type-hints-in-signature
- Replaced the
- Full diff
- Added
- A command line option
--version
to show the current version of pydoclint - Enabled pydoclint to be used as a pre-commit hook
- A command line option
- Fixed
- Encoding issues in Windows (where non-ASCII characters cause issues with Windows + pre-commit)
- Stopped using colons (:) in flake8 error messages because they could cause issues with tools like "yesqa"
- Changed
- Expanded the logic to identify generator functions
- Full diff
- Fixed
- Fixed a bug where re-raising an exception was not handled properly
- Full diff
- Fixed
- A typo in
DOC103
error message that resulted in an invalid URL
- A typo in
- Full diff
- Added
- A new option to allow no return section in the docstring if the function
implicitly returns
None
- A new option to allow no return section in the docstring if the function
implicitly returns
- Changed
- Made pydoclint options configurable via a config file (both in the native mode and in the flake8 plugin mode)
- Methods with
@property
as its last decorator no longer need to have a return section in the docstring
- Full diff
- Added
- A new violation,
DOC001
, for errors in parsing docstrings - A new option to allow
__init__()
methods to have docstring (and when users activate this option, check arguments and "Raises" in the docstring of__init__()
instead of in the class docstring)
- A new violation,
- Changed
- Used AST unparser to unparse type annotation nodes
- Fixed
- A bug when parsing type annotations such as
Callable[[int], str]
- A bug when parsing type annotations such as
- Full diff
- Added
- Added support for Google-style docstrings
- Full diff
- Added
- New command line options
- Fixed
- Fixed an issue where star arguments (*, *args, **kwargs) were omitted
- Full diff
Initial release