We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--exit-non-zero-on-format
1 parent f108c50 commit 4e9de95Copy full SHA for 4e9de95
1 file changed
docs/formatter.md
@@ -364,6 +364,7 @@ When an incompatible lint rule or setting is enabled, `ruff format` will emit a
364
`ruff format` exits with the following status codes:
365
366
- `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.
368
- `2` if Ruff terminates abnormally due to invalid configuration, invalid CLI options, or an
369
internal error.
370
0 commit comments