precommit icon indicating copy to clipboard operation
precommit copied to clipboard

pre-commit hooks for R projects

Results 65 precommit issues
Sort by recently updated
recently updated
newest added

**Is your feature request related to a problem? Please describe.** When running the lintr hook on a package, it flags many `object_usage_linter` errors. This happens because, unless the package is...

See: https://github.com/lorenzwalthert/precommit/pull/432 I seem to get a docopt issue when specifying an option without any arguments. See: https://github.com/lorenzwalthert/precommit/issues/429#issuecomment-1179806044. Therefore, I added ... arguments as a workaround. I bet there is...

**Is your feature request related to a problem? Please describe.** Remove dependencies **Describe the solution you'd like** `rlang::hash()` instead of digest's equivalent. **Describe alternatives you've considered** Status quo works, but...

updates: - [github.com/lorenzwalthert/gitignore-tidy: 9dd648a2cbce0c0ce09255695b63ea4823699bec → a2260df7cc08de00d7312aeff68cea6bcba48c42](https://github.com/lorenzwalthert/gitignore-tidy/compare/9dd648a2cbce0c0ce09255695b63ea4823699bec...a2260df7cc08de00d7312aeff68cea6bcba48c42)

**Is your feature request related to a problem? Please describe.** I would like a way to run many of these pre-commit hooks in arbitrary subdirectories. I am creating a repository...

As soon as the next `styler` release is cut and [https://github.com/r-lib/styler/issues/913](this) goes live, add `.qmd` files to apply the `style-files` hook to.

Complexity: Low
Priority: High
Status: Unassigned
Type: Enhancement

https://www.rstudio.com/blog/rstudio-2022-07-0-what-s-new/

Automatic hook dependency update don't give right `git diff` for some reason. See #252 for example.

This PR updates the hook dependencies in `renv.lock`, auto-generated by [create-pull-request][1]. Close and re-open this to trigger `on: pull_request` events to circumvent [limitation of GitHub actions](https://github.com/peter-evans/create-pull-request/blob/master/docs/concepts-guidelines.md#push-pull-request-branches-to-a-fork). [1]: https://github.com/peter-evans/create-pull-request

Just text files that are not R or Python source files, probably that's all we want. https://pre-commit.com/#filtering-files-with-types. Or just recommend other spell checkers like https://github.com/codespell-project/codespell