-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
akaihola
added
the
many-formatters
Support for multiple code formatters and skipping formatting
label
Mar 17, 2024
akaihola
changed the title
Add option to choose formatter
Add option to choose formatter, Black as default
Mar 17, 2024
akaihola
changed the title
Add option to choose formatter, Black as default
Option to choose formatter, Black as default
Mar 17, 2024
akaihola
added a commit
that referenced
this issue
Mar 20, 2024
The only supported value for now is `black`. Fixes #562
1 task
akaihola
added a commit
that referenced
this issue
Mar 26, 2024
The only supported value for now is `black`. Fixes #562
akaihola
added a commit
that referenced
this issue
Mar 26, 2024
The only supported value for now is `black`. Fixes #562
akaihola
added a commit
that referenced
this issue
Mar 27, 2024
The only supported value for now is `black`. Fixes #562
akaihola
added a commit
that referenced
this issue
Mar 30, 2024
The only supported value for now is `black`. Fixes #562
akaihola
added a commit
that referenced
this issue
Sep 15, 2024
The only supported value for now is `black`. Fixes #562
akaihola
added a commit
that referenced
this issue
Sep 15, 2024
The only supported value for now is `black`. Fixes #562
akaihola
added a commit
that referenced
this issue
Sep 24, 2024
The only supported value for now is `black`. Fixes #562
akaihola
added a commit
that referenced
this issue
Sep 25, 2024
The only supported value for now is `black`. Fixes #562
akaihola
added a commit
that referenced
this issue
Sep 25, 2024
The only supported value for now is `black`. Fixes #562
akaihola
added a commit
that referenced
this issue
Oct 9, 2024
The only supported value for now is `black`. Fixes #562
github-project-automation
bot
moved this from Review
to Done
in Darker and Graylint development
Oct 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
many-formatters
Support for multiple code formatters and skipping formatting
There are feature requests for
ruff format
as a formatter #521blue
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
--formatter=
with the default value of--formatter=black
and no other supported options. This would pave the way for adding other formatters.In
pyproject.toml
, a correspondingformatter =
option would be added, withformatter = "black"
as the default.See also:
The text was updated successfully, but these errors were encountered: