Subcommands11 subcommands
ruff check
Run Ruff on the given files or directories
ruff rule
Explain a rule (or all rules)
ruff config
List or describe the available configuration options
ruff linter
List all supported upstream linters
ruff clean
Clear any caches in the current directory and any subdirectories
ruff format
Run the Ruff formatter on the given files or directories
ruff server
Run the language server
ruff analyze
Run analysis over Python source code
ruff analyze graph
Generate a map of Python file dependencies or dependents
ruff version
Display Ruff's version
ruff help
Print this message or the help of the given subcommand(s)
OptionsOn ruff itself
-v--verbose
Enable verbose logging
-q--quiet
Print diagnostics, but nothing else
-s--silent
Disable all logging (but still exit with status code "1" upon detecting diagnostics)
--config
Path to the `pyproject.toml` or `ruff.toml` file to use for configuration <config>
--isolated
Ignore all configuration files