logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Ruff Format - Format Python Code | Online Free DevTools by Hexmos

Format Python code with Ruff Format. Quickly reformat files or check for formatting issues. Free online tool, no registration required.

ruff-format

An extremely fast Python code formatter. If no files or directories are specified, the current working directory is used by default. More information: https://docs.astral.sh/ruff/formatter.

  • Format given files or directories in-place:

ruff format {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

  • Print which files would have been modified and return a non-zero exit code if there are files to reformat, and zero otherwise:

ruff format --check

  • Print what changes would be made without modifying the files:

ruff format --diff

See Also