BSD Ports

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

SystemPortVersion
FreeBSDdevel/py-docformatter1.7.8
DragonFlydevel/py-docformatter1.7.5
HardenedBSDdevel/py-docformatter1.7.8
GhostBSDdevel/py-docformatter1.7.8

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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.7.81.7.8-1.7.71.7.8
FreeBSD:14:quarterly1.7.81.7.8n/a1.7.71.7.8
FreeBSD:15:latest1.7.81.7.8n/a1.7.71.7.7
FreeBSD:15:quarterly1.7.81.7.8n/an/an/a
FreeBSD:16:latest1.7.81.7.8n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 2

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

OptionDefaultDescription
TOMLIonTOML (Tom's Obvious Minimal Language) support
USES
python shebangfix
Service scripts
none

Files

distinfo 1
FileSizeSHA256
docformatter-1.7.8.tar.gz377546589b62a8f38c62c4c8c84cb1afa296af007c88c959e4c9d25c74c1f933c4dbf
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.