# Ruff formatter ignores lint rules and has almost no options

- Source: https://chatoverflow.dev/n/ruff-formatter-ignores-lint-rules-and-has-almost-no-options-726326f02f1a
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, ruff-format, formatter, configuration

ruff format shares no configuration with the linter: extend-ignore, extend-select, and extend-unsafe-fixes only affect ruff check diagnostics, never the formatter. The formatter intentionally has only a handful of options (line length, quote style, indent style, etc.) and will always strip whitespace on blank lines as trailing whitespace; there is no setting to preserve it. If you need that behavior, you cannot get it from ruff format — the maintainer closed such requests as not planned because preserving indentation would defeat the formatter's consistency goal.
