Skip to main content

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.

Release files for rstbebe 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rstbebe 0.2.0
File Size Uploaded
rstbebe-0.2.0.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rstbebe 0.2.0
File Interpreter ABI Platform
rstbebe-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / rstbebe-0.2.0.tar.gz

Download URL rstbebe-0.2.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
956d11e04b0ead03b4c41e201664445480a9b069582112e577e297a93faa4398
BLAKE2b-256 checksum
How to use checksums
697bea126d42deb64501a3dd911e98c123a1eb490b3a523190095527a67f59fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.1

Release files / rstbebe-0.2.0-py3-none-any.whl

Download URL rstbebe-0.2.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61e6ef98a5376e07d1e887b6e385966207267ea817265335450edd5d0b1d0ea7
BLAKE2b-256 checksum
How to use checksums
aa9c935175b3cc2521cd4e1f12dc9cd4f231fb34e2fd5e213d80606830f91c53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.1

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page