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

Allow checking if formatting is okay #5

Closed
mbhall88 opened this issue Feb 29, 2020 · 0 comments
Closed

Allow checking if formatting is okay #5

mbhall88 opened this issue Feb 29, 2020 · 0 comments
Milestone

Comments

@mbhall88
Copy link
Member

Have a parameter --check which does not do any formatting, but returns exit code 0 if no formatting is required and non-zero otherwise.

From black

  --check                         Don't write the files back, just return the
                                  status.  Return code 0 means nothing would
                                  change.  Return code 1 means some files
                                  would be reformatted.  Return code 123 means
                                  there was an internal error.
@mbhall88 mbhall88 added this to the v0.1.0 milestone Feb 29, 2020
mbhall88 added a commit that referenced this issue Feb 2, 2023
* add failing test for comment in run block

#169 (comment)

* fix incorrect test

* add and fix two tests

* fix test case with two comments in global context

* add test with comment after onstart
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

1 participant