Skip to content

{precommit} v0.4.0 (2024-01-21)

Compare
Choose a tag to compare
@lorenzwalthert lorenzwalthert released this 21 Jan 15:05
· 79 commits to main since this release
d9659eb

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 runs pkgdown::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, and use-tidy-description now
    all support a root 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 take NA, not NULL for argument
    ci (#431).
  • correct typo (#465) and fix error message (#470).

Dependencies

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.