{precommit} v0.4.0 (2024-01-21)
Apart from two new hooks, many bug fixes and a few minor features, this release
focused on improving the user experience when installing the hooks, which caused
users the most troubles. We enabled fast hook installation without the need for build
time or system dependencies on all platforms thanks to the Posit Package Manager
and removal of dependencies {git2r} and {digest}.
Features
- New hook:
no-print-statement
discovers and check for rogue print
statements (#505). - New hook:
pkgdown
runspkgdown::check_pkgdown()
to ensure the {pkgdown}
config is valid (#393). - add Posit CRAN mirror to ensure macOS binary installs are possible (#488).
codemeta-description-updated
,roxygenize
, anduse-tidy-description
now
all support aroot
argument that specifies the directory in the git repo
that contains the R package. Defaults to.
since for most R package git
repos, the git and R package root coincide (#432, #438).style-files
now supports styling of R code in Quarto docs (#449).style-files
now supports file names with spaces (#516).- Use python 3.10 by default for conda envs (#477).
Bug Fixes
- Make sorting consistent with
spelling::update_wordlist
(#514). - Don't depend on dev version of styler to avoid GitHub rate limit hit (#486).
- fix roxygenize cache invalidation (#464, #520).
- fix missing namespace prefixing in roxygen hook (#525).
Documentation
- improve spelling (#453).
use_ci()
is now documented to takeNA
, notNULL
for argument
ci
(#431).- correct typo (#465) and fix error message (#470).
Dependencies
- remove {digest} dependency (#471).
- remove {git2r} dependency (#497).
- Hook dependencies update (#503, #506 #508, #513, #540, #538, #527, #521, #519).
Infrastructure
- Refactored hook dependency update scripts and fixed bug with repos.
- Automatic hook dependency updates (#539, #532).
- use
ubuntu-latest
instead of pinned version for tests (#481). - use new {pkgdown} hook in this repo (#460).
read-only
flag for testing (#529).- Bump actions/checkout (#509, #458) and others (#533).
- ensure local and remote pre-commit execution are the same for this repo
(#463).
Other
- Adjust to latest {roxygen2} CRAN release (#536).
Changelog from dev releases is collapsed into this patch release at the time
this release is created. If you need releases by dev release, i.e. 0.3.2.x,
checkout this file at git tag v0.3.2.9020
.
A big thanks goes to all people who made this release reality:
@AliSajid, @averissimo, @clarkliming, @danielinteractive, @denn173, @EzicJ, @fabianegli, @hadley, @IndrajeetPatil, @jashapiro, @joelnitta, @jonathanckt, @jsnel, @kcphila, @KoderKow, @KyleDCox, @m-muecke, @mythichamster, @ns-rse, @russHyde, @sempwn, @stefanoborini, @thefabnab, @TNonet, @TymekDev, @yogat3ch.