1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-03-29 19:14:05 +08:00
ohmyzsh-mirror/plugins/ruff
2026-03-02 13:10:04 +02:00
..
README.md feat(ruff): add ruff plugin 2026-03-02 13:10:04 +02:00
ruff.plugin.zsh feat(ruff): add ruff plugin 2026-03-02 13:10:04 +02:00

ruff plugin

This plugin automatically installs ruff's completions for you, and keeps them up to date. It also adds convenient aliases for common usage.

To use it, add ruff to the plugins array in your zshrc file:

plugins=(... ruff)

Aliases

Alias Command Description
ruc ruff check Run Ruff linter on the given files or directories
rucf ruff check --fix Run Ruff linter and fix auto-fixable issues
ruf ruff format Run the Ruff formatter on the given files or directories
rufc ruff format --check Check if files are already formatted without making changes
rur ruff rule Explain a rule (or all rules)
rul ruff linter List all supported upstream linters
rucl ruff clean Clear any caches in the current directory and subdirectories
ruup ruff self update Update Ruff to the latest version