style_transformersthat allows to specify a style guide like this:
--'style_transformers=tidyverse_style(scope = "spaces")', which gives the user the flexibility to also specify arguments of the style guide. The argument
--style_funis deprecated and will be removed in a future release. (#183).
use_precommit()should now work as expected (#185).
precommit::uninstall_precommit()now correctly removes
.Rbuildignoreand does not show a prompt (#199).
Initial CRAN release. See https://lorenzwalthert.github.io/precommit/.
install_hooks = TRUEparameter. Now all hook environments defined in yaml config are by default installed in advance. (#163)
"global"was renamed to
.pre-commit-config-config.yamlfor the spell check hook for easy manipulation. Also, additional patterns were excluded such as
DESCRIPTIONnow links the pkgdown website in addition to the GitHub repo (#155).
.Rdsis now also excluded from the spell checking hook.
A major API review was conducted to make the package ready for a CRAN submission in #152:
rootnow always defaults to
config_sourcewas renamed to
forcegains a default value for consistency with
verbosenow is in the same position as in
Additional breaking changes are:
r-reticulateto avoid conflicts with other packages commonly installed in
spell-checkdoes no longer take the hook argument
ignore-filessince this was inconsistent with the pre-commit framework. To exclude additional files, specify the
exclude:key in your
.pre-commit-config.yamlfile. If you like to keep excluding the default files, make sure you include the default regex (#153).
git diff --cachedcontains roxygen comments (#151).
Test release process.
use_precommit()gains new argument
config_sourceto copy an existing config file into the repo at initialization. The argument defaults to
options('precommit.config_source')to make it easy for users to use their preferred hooks in every repo they initialize (#111).
r-precommitenv if not existent before installing into it (#114).
.pre-commit-config.yamlincludes hook to check files have a EOF blank line (#126).
path_pre_commit_exec()in favor of
path_precommit_exec()and adapt internals to replace
BREAKING: If you used precommit < 0.0.0.9017 (and if you choose a
different installation strategy than
precommit::install_precommit()), you can link your existing
executable by setting the R optionprecommit.executable` to the path where
you stored the pre-commit executable.
Adding tools to work with hooks:
open_wordlist() using conda
environments on all platforms.
Make repo a fully R CMD CHECK compliant R package (includes moving hooks to
renamed repo from pre-commit-hooks to precommit.
added pkgdown website, restructured README.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.