OS Manuals

/usr/bin/ruff_python_formatter

From ruff-python-formatter 0.17.4-r0 (os), captured 2026-11-07 by running ruff_python_formatter --help (exit 0). permalink

This is an internal component crate of Ruff

Usage: ruff_python_formatter [OPTIONS] --target-version <TARGET_VERSION> [FILES]...

Arguments:
  [FILES]...
          Python files to format. If there are none, stdin will be used. `-` as stdin is not
          supported

Options:
      --emit <EMIT>
          Possible values:
          - files:  Write back to the original files
          - stdout: Write to stdout

      --check
          Run in 'check' mode. Exits with 0 if input is formatted correctly. Exits with 1 and prints
          a diff if formatting is required

      --preview


      --print-ir


      --print-comments


  -C, --skip-magic-trailing-comma


      --target-version <TARGET_VERSION>


  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version
Options (9)
OptionDescriptionSource
--emit EMITPossible values:help
--checkRun in 'check' mode.help
--previewhelp
--print-irhelp
--print-commentshelp
-C, --skip-magic-trailing-commahelp
--target-version TARGET_VERSIONhelp
-h, --helpPrint help (see a summary with '-h')help
-V, --versionPrint versionhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.