Option to choose formatter, Black as default #562
Labels
enhancement
New feature or request
many-formatters
Support for multiple code formatters and skipping formatting
Milestone
There are feature requests for
blue
as a formatter #251For these, a command line and configuration option for choosing (or omitting) the formatter is needed.
In discussion for #304, a
--format=
or--formatter=
option was proposed. The--format=
variant was preferred since it corresponds to the name of the--lint=
option (not--linter=
). On the other hand, now that linting is moving to the separate Graylint package anyway, maybe we could also use the more descriptive variant--formatter=
.In the first phase, we would just add
--format=
with the default value of--format=black
and no other supported options. This would pave the way for adding other formatters.In
pyproject.toml
, a correspondingformat =
option would be added, withformat = "black"
as the default.See also:
The text was updated successfully, but these errors were encountered: