Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rstbebe-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rstbebe-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file rstbebe-0.1.1.tar.gz.

File metadata

  • Download URL: rstbebe-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for rstbebe-0.1.1.tar.gz
Algorithm Hash digest
SHA256 687d92f7ceb6aa13e42d3162c1e42c2b8baebb1bf8ce5ad805eca29faddcb8e1
MD5 6069e3bd577432a6a3c801c313c309bb
BLAKE2b-256 ed5e44cbea4205b05911182b0dde6f8571aba7abe34fc31d36a732551e2f4d0f

See more details on using hashes here.

File details

Details for the file rstbebe-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: rstbebe-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for rstbebe-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57b0c1e6e87c34e6096210520d1ed8ac89a2f9fdc9460b6ac3777143153a2664
MD5 3458b8274a6fc7f3cd3f5d2f1b9011d6
BLAKE2b-256 d9e0951026b2f58f6ce8636a772cf9f7716d7a5e27273753ee575b7fa53c05bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page