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

Support for --check and report as problem if a file needs formatting #164

Open
ademoverflow opened this issue Dec 28, 2022 · 3 comments
Open
Labels
feature-request Request for new features or functionality needs community feedback

Comments

@ademoverflow
Copy link

Hello all !
First of all thank you for this extension, the tool is cool !

I would like to know if it is possible to see if an open .py file has to be formatted with black, in the "Problems" tab on vscode ? Like isort, pylint etc do ?

Simple question, I search for this response and was not able to find a good answer, so I decided to post here.

Thanks !

@github-actions github-actions bot added the triage-needed Issue is not triaged. label Dec 28, 2022
@karthiknadig
Copy link
Member

We don't support --check for black. This would be a feature request.

@karthiknadig
Copy link
Member

karthiknadig commented Jan 4, 2023

Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 5 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.

@karthiknadig karthiknadig added feature-request Request for new features or functionality needs community feedback and removed triage-needed Issue is not triaged. labels Jan 4, 2023
@karthiknadig karthiknadig removed their assignment Jan 4, 2023
@karthiknadig karthiknadig changed the title [Question] How to display black warnings on "Problems" tab in vscode ? Support for --check and report as problem if a file needs formatting Jan 7, 2023
@sk3p71c
Copy link

sk3p71c commented Feb 1, 2024

Upvoted; this would be really useful and aligns with other tools. If this feature is not supported it'd be great to make this clear in the usage instructions of the extension please---I spent ages looking for it.

If you're wondering what the use case is, consider that you're adding or modifying code to an existing codebase and want to ensure new code is formatted without re-formatting an entire file. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality needs community feedback
Projects
None yet
Development

No branches or pull requests

3 participants