Skip to content

Commit 4e9de95

Browse files
authored
Add --exit-non-zero-on-format to formatter exit codes section (#22761)
1 parent f108c50 commit 4e9de95

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/formatter.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ When an incompatible lint rule or setting is enabled, `ruff format` will emit a
364364
`ruff format` exits with the following status codes:
365365

366366
- `0` if Ruff terminates successfully, regardless of whether any files were formatted.
367+
- `1` if Ruff terminates successfully, one or more files were formatted, and `--exit-non-zero-on-format` was specified.
367368
- `2` if Ruff terminates abnormally due to invalid configuration, invalid CLI options, or an
368369
internal error.
369370

0 commit comments

Comments
 (0)