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.0.tar.gz (3.5 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.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rstbebe-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 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.0.tar.gz
Algorithm Hash digest
SHA256 1d13593992cba1365cede288a5516ad80495d3901ed418e853f9496188572478
MD5 caa1a75dc7834248d5767c9ae8445691
BLAKE2b-256 1ba7359007ef7f519d0a2f569fce8428f8230f2891a4e19d4abf7ae9ba80b230

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rstbebe-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01997d773c0fcefdc4085664ba1f9bb437d317c2144639597b2654308e32a4be
MD5 397d1251e4c2f728d84ca114214894aa
BLAKE2b-256 e009331f46b0395961f8bf6925645ee4f947b36df385a35dbbd7bf2123a7b307

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