Understand docformatter's PEP 257 compliance goals
masterThe primary goal of docformatter is to act as an autoformatting tool that produces PEP 257 compliant docstrings.
It focuses on two main categories of requirements derived from PEP 257:
- Convention Requirements: These are the structural rules (the "shall" requirements) that ensure docstrings can be properly processed by tools like
Docutilsorpydocstyle.docformatteraims to satisfy all absolute convention requirements. - Methodology Requirements: These relate to the actual content of the docstring. While harder to automate,
docformatteraims to support these and provides arguments to allow users to toggle specific methodology requirements on or off.
By following these conventions, docformatter ensures your docstrings are structurally sound for the Python ecosystem.