Pink RST 🩷
Opinionated ReStructured Text (.rst) Formatter inspired by Black.
Remember: RST Files wear pink EVERY day of the week.
Works well with doc8
There's only one file, so read it if you want the docs.
Install
pip3 install pinkrst
or
pip install pinkrst
Usage
pink file.rst # to process individual file
pink --max-line-length 100 file.rst # set max line length
pink # to process files in dir and recursively processes sub-folder files
pink --no-recurse # to process files in dir WITHOUT recusion
# to process files recursively in dir WITHOUT ensuring there's a trailing newline at the end of files
pink --disable-trailing-newline
# or go crazy, see next section
pink --no-recurse --disable-replace-tabs --spaces-per-tab 4 --disable-smart-wrap --max-line-length 100 directory/
CLI Arguments
| Argument | Description |
|---|---|
-h, --help |
Show help message and exit. |
-rx, --no-recurse |
Turns off recursively parsing subdirectories. Recursion is enabled by default. |
--disable-no-trailing-whitespace |
Disables the removal of trailing whitespace on each line |
--disable-replace-tabs |
Disables replacing tabs with spaces |
--spaces-per-tab SPACESPERTAB |
Specifies the number of spaces to replace each tab with. Default is 4 spaces. |
--disable-trim-excess-empty-lines |
Disables trimming excess empty lines from files. |
--disable-trailing-newline |
Disable ensuring that files end with a newline character. |
--disable-smart-wrap |
Disable intelligently wraping long lines that exceed a specified width. |
--max-line-length LINELENGTH |
Sets the maximum line length after which wrapping should occur. Default is 120 characters. |
Metadata
Release files for pinkrst 0.0.1.post2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pinkrst-0.0.1.post2.tar.gz | 5.0 kB | Without provenance | Details for pinkrst-0.0.1.post2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pinkrst-0.0.1.post2-py3-none-any.whl | Python 3 | none | any | Details for pinkrst-0.0.1.post2-py3-none-any.whl |
Total release size: 10.6 kB
Release files / pinkrst-0.0.1.post2.tar.gz
| Download URL | pinkrst-0.0.1.post2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5629b5a3b50fff5b1615a9f873b2afe6a7bf47b14ebcfa779c773a931b926514
|
|
BLAKE2b-256 checksum How to use checksums |
c750d469b3b5126de0ae72b47155617a6693872f837e3dd4f016caff5811731f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.9.6 Darwin/23.4.0
|
Release files / pinkrst-0.0.1.post2-py3-none-any.whl
| Download URL | pinkrst-0.0.1.post2-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac967cde61f3ca0a2625d35f192984a600a58a6d52537f722d86c11270ceac7d
|
|
BLAKE2b-256 checksum How to use checksums |
62afab25f7a9a77b227b3117563d28a27cbf908f915eb441b3f7dfd07eb47bfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.9.6 Darwin/23.4.0
|
Security for pinkrst 0.0.1.post2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.