pydocstringformatter

0.7.5 · active · verified Thu Apr 16

pydocstringformatter is a tool that automatically formats Python docstrings, aiming to align them with recommendations from PEP 8 and PEP 257. It is currently at version 0.7.5 and maintains an active release cadence, with minor releases addressing bug fixes and improvements appearing every few weeks to months.

Common errors

Warnings

Install

Quickstart

Run pydocstringformatter on a Python file to automatically format its docstrings. Use `--diff` to see changes without applying them, or run without to apply changes directly.

echo "def example_function():\n    ''' A docstring. '''\n    pass" > temp_module.py
pydocstringformatter temp_module.py --diff
pydocstringformatter temp_module.py
cat temp_module.py
rm temp_module.py

view raw JSON →