devel/py-docformatter 1.7.8 FreeBSD
Format docstrings to follow PEP 257
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- devel, python
- Package size
- 76.8 KiB, 455.7 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 |
|---|---|---|
| FreeBSD | devel/py-docformatter | 1.7.8 |
| DragonFly | devel/py-docformatter | 1.7.5 |
Install
Binary package:
pkg install py312-docformatter
From the ports tree:
cd /usr/ports/devel/py-docformatter/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-docformatter>0:devel/py-docformatter
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.7.8 | 1.7.8 | - | 1.7.7 | 1.7.8 |
| FreeBSD:14:quarterly | 1.7.8 | 1.7.8 | n/a | 1.7.7 | 1.7.8 |
| FreeBSD:15:latest | 1.7.8 | 1.7.8 | n/a | 1.7.7 | 1.7.7 |
| FreeBSD:15:quarterly | 1.7.8 | 1.7.8 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.7.8 | 1.7.8 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0: devel/py-poetry-core
Runtime 2
${PYTHON_PKGNAMEPREFIX}charset-normalizer>=3.0.0<4: textproc/py-charset-normalizer${PYTHON_PKGNAMEPREFIX}untokenize>=0.1.1<0.2: devel/py-untokenize
The full lists below include those, and their dependencies in turn.
Build dependencies 15
Run dependencies 9
Required by 1
Configuration
Options name: devel_docformatter
| Option | Default | Description |
|---|---|---|
| TOMLI | on | TOML (Tom's Obvious Minimal Language) support |
- USES
- python shebangfix
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| docformatter-1.7.8.tar.gz | 37754 | 6589b62a8f38c62c4c8c84cb1afa296af007c88c959e4c9d25c74c1f933c4dbf |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.