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

[Feature Request] Add --check #147

Closed
MartinThoma opened this issue Feb 20, 2022 · 2 comments
Closed

[Feature Request] Add --check #147

MartinThoma opened this issue Feb 20, 2022 · 2 comments

Comments

@MartinThoma
Copy link

Black has a flag --check so that it returns a non-zero status code when it detects something that needs reformatting. It would be nice if blacken-docs had this as well. If it had, it would be possible to include it into CI.

Related to zedr/clean-code-python#26 (comment)

@MartinThoma
Copy link
Author

Ah, sorry, I've just searched again and found that this was requested already a couple of times. #91 is a good reference issue.

@MartinThoma
Copy link
Author

Turns out that what I want is already possible

note that you can already use the exit code (this tool returns nonzero when making changes)

Source: #42 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants