Pymend

Latest version: v1.0.10

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

Scan your dependencies

Page 1 of 2

1.0.10

- Made issue reporting even clearer.
- Parameter force settings are now properly ignored when creating completely new docstrings.
- Fixed google multi pattern regex to include the standard `name (type): description` returns and parameters.

1.0.9

- Made issue messages clearer
- Handle trailing comments at the end of the docstring (on the same line) so that they are retained.
- Handle multiple return entries in google style.

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.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.