Skip to main content

Render Ruff rule docs in the terminal or open them in a browser

Project description

ruff-explain

ruff-explain looks up Ruff rule documentation by rule ID and renders the docs page directly in your terminal with Rich.

Example render

What it does

  • Renders Ruff rule docs in the terminal by default.
  • Opens the canonical docs page in your browser with -o / --open.
  • Prints the installed version with -v / --version.
  • Resolves rule IDs like FAST001, F401, and ARG001 from a bundled rule map.
  • Keeps the output focused on the actual rule content instead of full site chrome.

Usage

uv run ruff-explain FAST001
uv run ruff-explain F401
uv run ruff-explain ARG001 -o
uv run ruff-explain --version

Run from source

Run it from the repo with uv:

uv run ruff-explain FAST001

Notes

  • Default behavior is terminal rendering.
  • --open skips rendering, opens the docs page immediately, and exits.
  • --version prints the installed package version and exits.
  • Unknown rule IDs return a non-zero exit code and show close matches when available.

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

ruff_explain-1.0.2.tar.gz (40.4 kB view details)

Uploaded Source

Built Distribution

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

ruff_explain-1.0.2-py3-none-any.whl (48.5 kB view details)

Uploaded Python 3

File details

Details for the file ruff_explain-1.0.2.tar.gz.

File metadata

  • Download URL: ruff_explain-1.0.2.tar.gz
  • Upload date:
  • Size: 40.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ruff_explain-1.0.2.tar.gz
Algorithm Hash digest
SHA256 12c13337eab77ecd61d66de5ad2b82aaaf44bea10126ee51df610f008a7ec303
MD5 0ada6a71de9c6ded5121b31d2429b951
BLAKE2b-256 0485ac68d93b68c7cb92964b489c6b4a650085919e34316b52c97d30b5a73517

See more details on using hashes here.

File details

Details for the file ruff_explain-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: ruff_explain-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 48.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ruff_explain-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eb7592636a5837b72cfe1fd2bc7287f2d694911c632a6e3660f7969832d9c1ca
MD5 2bd1afb751a0377d776c22a71112b0d9
BLAKE2b-256 8f40ecf2af5961efe57926bb0e2675917077b67c23baa401265fb58070ab2e44

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