devel/py-docformatter 1.7.5 DragonFly
Format docstrings to follow PEP 257
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, python
- Package size
- 48.3 KiB, 287.6 KiB installed
Description
docformatter automatically formats docstrings to follow a subset of the PEP 257 conventions. Below are the relevant items quoted from PEP 257.
- For consistency, always use triple double quotes around docstrings.
- Triple quotes are used even though the string fits on one line.
- Multi-line docstrings consist of a summary line just like a one-line docstring, followed by a blank line, followed by a more elaborate description.
- Unless the entire docstring fits on a line, place the closing quotes on a line by themselves.
docformatter also handles some of the PEP 8 conventions.
- Don't write string literals that rely on significant trailing whitespace. Such trailing whitespace is visually indistinguishable and some editors (or more recently, reindent.py) will trim them.
docformatter formats docstrings compatible with black when passed the --black option.
docformatter formats field lists that use Epytext or Sphinx styles.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/py-docformatter | 1.7.5 |
| FreeBSD | devel/py-docformatter | 1.7.8 |
| HardenedBSD | devel/py-docformatter | 1.7.8 |
| GhostBSD | devel/py-docformatter | 1.7.8 |
Install
Binary package:
pkg install py311-docformatter
From DPorts:
cd /usr/dports/devel/py-docformatter && make install clean
Dependencies
Run dependencies 3
No port depends on this one.