Pymend

Latest version: v1.1.0

Safety actively analyzes 714875 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

1.0.7

Fix the regex for parsing google sections to be able to handle type hints like `tuple[int, int] | None`

1.0.6

Add `__main__.py` to also be able to run pymend as a module via `python -m pymend`

Dunder methods are now always ignored when building method section of classes.

Renamded `force_param_min_func_length` to `force_meta_min_func_length` and also made it apply to return values.

1.0.5

Added vast configuration options via command line or pyproject.toml

Examples:

- The input style can now be set directly saved time and ensuring a proper result in edge cases
- Fixing settings like whether parameter, return, method or attribute sections should be enforced and under what circumstances.
- Whether to handle or ignore underscored parameters, attributes and methods
- Option to ignore function by name or decorators as well as classes by name
- A check option that prints a report about and sets the return code according to any issues found.
- This option is also stricter than the formatting in that it flags types, summaries and descriptions that are still left on the pymend default value.

1.0.4

Now storing both list and string representation of input and output file at once to avoid repeated join and split.

Switched from argparse to click.

Added configuration options via pyproject.toml

Added option to exclude files.

Added nice outputs.

1.0.3

Attributes now support annotated assignments.

Exceptions with messages are now handled.

Methods do not get forced types anymore.

Default values of triple quotes do not cause syntax errors anymore.

Added consistency and equality checks.

Better support for numpydoc example sections.

Auto style detection now prioritizes example sections.

1.0.2

Command-line program to generate, update or transform docstrings python source code.

The app will parse the requested source files for docstrings as well as function signatures and class bodies.

This information is combined to build up complete docstrings for every function and class including place holders for types and descriptions where none could be found elsewhere.

The output format of the docstrings can be chosen between google, numpy, reST and epydoc. This means that the tool can also be used to transform docstrings in the file from one format into another.

Based upon [pyment](https://github.com/dadadel/pyment) and [docstring_parser](https://github.com/rr-/docstring_parser).

Page 2 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.