RST baby! Let's go!
Project description
RST Baby!
bébé (noun, french): "baby"
rstbebe
is a tool for all y'all who work in a polyglot environment with
markdown, restructured text, and maybe other markup languages (e.g. docbook).
What's it do?
It's a linter and pre-commit
hook for catching
rst
files which have incorrect or undesirable syntax.
Right now, it will help you catch this incorrect use of backticks:
Use `snorkwozzle()` to `frob` your `multifropnibab`!
Wait, aren't single-backticks valid RST syntax?
Depends what you mean.
It is valid syntax, but it creates a title_reference
.
Usually, when people use single-backticks, if they're used to markdown, they
are making a mistake and mean to have inline code with double-backticks.
How can I use it?
CLI:
pipx run rstbebe bad-backticks [FILES...]
or pre-commit config:
- repo: https://github.com/sirosen/rstbebe
rev: 0.1.0
hooks:
- id: bad-backticks
files: changelog\.d/.*\.rst
Contributing
rstbebe
is maintained by one guy in his spare time. Be nice.
Can it also check for $COMMON_RST_MISTAKE ?
Open an issue! Let's see what we can do.
Can it also autofix $COMMON_RST_MISTAKE_WITH_CLEAR_FIX ?
Yep, that also sounds like a good idea! For now it's a linter, but it can become a fixer as long as we can come up with good (safe) rules.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rstbebe-0.2.0.tar.gz
.
File metadata
- Download URL: rstbebe-0.2.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 956d11e04b0ead03b4c41e201664445480a9b069582112e577e297a93faa4398 |
|
MD5 | 34ced2dba2d57d1dd625a28bcc4510da |
|
BLAKE2b-256 | 697bea126d42deb64501a3dd911e98c123a1eb490b3a523190095527a67f59fb |
File details
Details for the file rstbebe-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: rstbebe-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61e6ef98a5376e07d1e887b6e385966207267ea817265335450edd5d0b1d0ea7 |
|
MD5 | 63fa4a223fa8cbb893717796a7d82710 |
|
BLAKE2b-256 | aa9c935175b3cc2521cd4e1f12dc9cd4f231fb34e2fd5e213d80606830f91c53 |