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

Make black work like black $(pwd) #4385

Closed
gilramot opened this issue Jun 21, 2024 · 3 comments
Closed

Make black work like black $(pwd) #4385

gilramot opened this issue Jun 21, 2024 · 3 comments
Labels
T: enhancement New feature or request

Comments

@gilramot
Copy link

Is your feature request related to a problem? Please describe.

Just writing black to the command line outputs:

Usage: black [OPTIONS] SRC ... One of 'SRC' or 'code' is required.

Describe the solution you'd like

Make the functionality of black without parameters work like black $(pwd) (excecuting black on working directory)

@gilramot gilramot added the T: enhancement New feature or request label Jun 21, 2024
@denballakh
Copy link

I dont like this idea.
Black has side effects, and accidentally running it without arguments can mess up a lot of code.

@gilramot
Copy link
Author

gilramot commented Jun 21, 2024

I dont like this idea. Black has side effects, and accidentally running it without arguments can mess up a lot of code.

Making an Are you sure? [y/N] prompt can be a good safety measure if this will ever be implemented

@JelleZijlstra
Copy link
Collaborator

We previously rejected this; see #740 (comment). Those reasons still apply.

@JelleZijlstra JelleZijlstra closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants