ruff-format Verified for current stable LTS

Ruff Format Command: Format Files In Place

Use for format files in place with Ruff Format. Exact CLI syntax to format files in place using Ruff Format.

When to use this: Use for format files in place with Ruff Format.

Command Syntax

ruff format <path/to/file_or_directory1 path/to/file_or_directory2 ...>

Command Breakdown

ruff is the base executable for this command.

FAQ

Purpose: Exact syntax to format files in place using Ruff Format.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Ruff Format directory