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
Revised add spaces #516
Revised add spaces #516
Conversation
… handle this situation)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the effort to make a new PR @kcphila, see the comments I made. To fix R cmd check issues, please roxygenise
and run the pre-commit hooks that should fix some formatting problems. Pre-commit.ci failed because a binary was not yet available for {curl} from the PPM as the roxygenise hook for some reason depends on {curl} recursively.
This reverts commit 095c315.
@kcphila please did you forget to install the pre-commit hooks? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix these style issues and re-document (or let pre-commit.CI do it)?
for more information, see https://pre-commit.ci
Hi @lorenzwalthert, looks like you committed the two minor revisions from this morning. Are there any outstanding issues remaining? |
Only that I realised all hook script helper have #' This function is only exported for use in hook scripts, but it's not intended
#' to be called by the end-user directly.
in their docs. Can you add that? And that the roxygen hook had a regression described in #517, but that’s unrelated to your PR. |
Then we can merge. Sorry I can’t help, away without labtop |
Great. @kcphila as a final test before we merge this, you can already use this in your repo. In your pre-commit config, set the |
Hi @lorenzwalthert, success! I verified it crashing with the 0.3.2 and then updated the yaml config and it styled successfully. Just for sanity I also did the same for a already correctly styled file with artificial spaces in it. |
Thanks @kcphila, glad we got this right in the second iteration. I will release a new hook version soon (will be a new git tag), as for now, your team can just use the hash you used for testing. |
Rewrote the PR based on discussion to provide a global wrapper around all
docopt
calls. Also added some tests to verify that calls to docopt work both when args are preprocessed (exclusively instyle-file
) and not (created tests forparsable-R
for this example).