Initial CRAN release. See https://lorenzwalthert.github.io/precommit/.
"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).
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.
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.