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

Run no formatter by default #450

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

Run no formatter by default #450

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.
Darker has become a versatile tool for running reformatters, linters and other code inspection/modification tools. For use cases where reformatting with Black isn't desired, and for consistency and symmetry, Black should be enabled only by a configuration / command line option just like other supported tools.

Describe the solution you'd like
If no configuration or command line option for disabling/enabling Black is provided, Black should not be run. In other words, black = false / --no-black OR --format=none should be the default.

Describe alternatives you've considered
Keep Darker as is and add another command line tool which invokes the same code but with different defaults.

Additional context
See

@akaihola akaihola added the enhancement New feature or request label Jan 5, 2023
@akaihola akaihola added this to the 2.0.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
@akaihola akaihola changed the title Make --no-black the default Run no formatter by defautl Mar 17, 2024
@akaihola akaihola changed the title Run no formatter by defautl Run no formatter by default 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