Skip to content

Ruff User Guides

Tip

Official documentation for Ruff is available at https://docs.astral.sh/ruff

Format Python Code with Ruff

If you want to format your Python code in Ruff, run the following command or press Cmd+S to save it:

1
uv run ruff format

Lint Python Code with Ruff

1
uv run ruff check

Configuration for Ruff

If you want to configure the Ruff, visit the Configuration for ruff page.