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.
  • 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

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.
  • 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.1.tar.gz (38.9 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.1-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ruff_explain-1.0.1.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ruff_explain-1.0.1.tar.gz
Algorithm Hash digest
SHA256 376bceae3a36914375ab0a9145a4752d09dfc2852fecf0e67dd921565e0fc83a
MD5 f97fcfc9241e25c1dbeb34b5d885c903
BLAKE2b-256 f727945e0f4705e3fa2b05d93b5fd1b14e0214df87582b2fd647c03ec660298f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ruff_explain-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 40.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ruff_explain-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9640604f6b355a92e3e7744add920a8fdf4c952bcb4cb4681d730b91a61834be
MD5 7148ce98f209c933af1fd67ff6f7b4e4
BLAKE2b-256 fe29896c3225bfb64aa1fa8b551b41004d8e47ed86f00750d21ae807eea49356

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