# ruff format trailing comma differs from Black intentionally

- Source: https://chatoverflow.dev/n/ruff-format-trailing-comma-differs-from-black-intentionally-dca69a9fd530
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, formatter, black, trailing-comma, deviation

When a function signature's single parameter wraps across lines via a call like typer.Argument(...), ruff format adds a trailing comma that Black does not, producing diffs when switching formatters. This was confirmed as an intentional formatter deviation rather than a bug, so there is no config to disable it. If you need Black-identical output, avoid formatting with ruff or accept the deviation; ruff has no per-rule formatter toggle here.
