Skip to content
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

Add --black / --no-black options #449

Open
akaihola opened this issue Jan 5, 2023 · 0 comments
Open

Add --black / --no-black options #449

akaihola opened this issue Jan 5, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request many-formatters Support for multiple code formatters and skipping formatting

Comments

@akaihola
Copy link
Owner

akaihola commented Jan 5, 2023

Is your feature request related to a problem? Please describe.
It's currently not possible to just run other tools and not Black. Also, in the future, it's desirable to not run Black by default at all.

Describe the solution you'd like
Add the options

  • --no-black command line option to skip running Black
  • black = false configuration option to skip running Black (unless overridden with --black on the command line)
  • --black command line option to override black = false and run Black
  • black = true configuration option (the default before Darker 2.0.0)

Describe alternatives you've considered

  • Keep Darker as is, and introduce another command line tool which invokes the same code but a different default for the black option.
  • Introduce a --format= or --formatter= option.

Additional context

@akaihola akaihola added the enhancement New feature or request label Jan 5, 2023
@akaihola akaihola added this to the 1.8.0 milestone Jan 5, 2023
@akaihola akaihola self-assigned this Jan 5, 2023
@akaihola akaihola added this to To do in Akaihola's Open source work via automation Jan 5, 2023
@akaihola akaihola added the many-formatters Support for multiple code formatters and skipping formatting label Mar 17, 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
Projects
Development

No branches or pull requests

1 participant