Skip to content

Commit d9659eb

Browse files
Merge pull request #541 from lorenzwalthert/rc-v0.4.0
Release {precommit} 0.4.0
2 parents 4f5ac61 + 9d27bc6 commit d9659eb

14 files changed

+122
-47
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@
1818
^pkgdown$
1919
^renv$
2020
^renv\.lock$
21+
^revdep$
2122
^scratch$

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ repos:
6060
inst/usethis-legacy-hook|
6161
LICENSE|
6262
renv/.*|
63+
revdep/.*|
6364
tests/testthat/in/.*|
6465
)$
6566
- id: readme-rmd-rendered

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: precommit
22
Title: Pre-Commit Hooks
3-
Version: 0.3.2.9028
3+
Version: 0.4.0
44
Author: Lorenz Walthert
55
Maintainer: Lorenz Walthert <[email protected]>
66
Description: Useful git hooks for R building on top of the multi-language

NEWS.md

+53-38
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,74 @@
1-
<!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->
1+
# precommit 0.4.0
22

3-
# precommit 0.3.2.9020
43

5-
- Make sorting consistent with spelling::update_wordlist (#514).
6-
- Bump actions/checkout from 3 to 4 (#509).
7-
- Discover and check for rogue print statements (#505).
8-
- Use python 3.10 by default for conda envs(#477).
9-
- Hook dependencies update (#503, #506 #508, #513).
4+
Apart from two new hooks, many bug fixes and a few minor features, this release
5+
focused on improving the user experience when installing the hooks, which caused
6+
users the most troubles. We enabled fast hook installation without the need for build
7+
time or system dependencies on all platforms thanks to the Posit Package Manager
8+
and removal of dependencies {git2r} and {digest}.
109

1110

12-
# precommit 0.3.2.9015
11+
**Features**
1312

14-
* Update dependencies.
15-
* Refactored hook dependency update scripts.
16-
* Please see tag diff for more details.
13+
- New hook: `no-print-statement` discovers and check for rogue print
14+
statements (#505).
15+
- New hook: `pkgdown` runs `pkgdown::check_pkgdown()` to ensure the {pkgdown}
16+
config is valid (#393).
17+
- add Posit CRAN mirror to ensure macOS binary installs are possible (#488).
18+
- `codemeta-description-updated`, `roxygenize`, and `use-tidy-description` now
19+
all support a `root` argument that specifies the directory in the git repo
20+
that contains the R package. Defaults to `.` since for most R package git
21+
repos, the git and R package root coincide (#432, #438).
22+
- `style-files` now supports styling of R code in Quarto docs (#449).
23+
- `style-files` now supports file names with spaces (#516).
24+
- Use python 3.10 by default for conda envs (#477).
1725

18-
# precommit 0.3.2.9013
26+
**Bug Fixes**
1927

20-
* Don't depend on dev version of styler to avoid GitHub rate limit hit (#486).
28+
- Make sorting consistent with `spelling::update_wordlist` (#514).
29+
- Don't depend on dev version of styler to avoid GitHub rate limit hit (#486).
30+
- fix roxygenize cache invalidation (#464, #520).
31+
- fix missing namespace prefixing in roxygen hook (#525).
2132

22-
# precommit 0.3.2.9009
2333

24-
* add Posit CRAN mirror to ensure macOS binary installs are possible (#488).
25-
* use `ubuntu-latest` instead of pinned version for tests (#481).
26-
* correct typo (#465) and fix error message (#470).
27-
* remove {digest} dependency (#471).
34+
**Documentation**
35+
36+
- improve spelling (#453).
37+
- `use_ci()` is now documented to take `NA`, not `NULL` for argument
38+
`ci` (#431).
39+
- correct typo (#465) and fix error message (#470).
40+
41+
**Dependencies**
42+
43+
- remove {digest} dependency (#471).
44+
- remove {git2r} dependency (#497).
45+
- Hook dependencies update (#503, #506 #508, #513, #540, #538, #527, #521, #519).
2846

29-
# precommit 0.3.2.9007 (2022-12-26)
47+
**Infrastructure**
3048

31-
- roxygenize cache invalidation is functional again (#464).
49+
- Refactored hook dependency update scripts and fixed bug with repos.
50+
- Automatic hook dependency updates (#539, #532).
51+
- use `ubuntu-latest` instead of pinned version for tests (#481).
52+
- use new {pkgdown} hook in this repo (#460).
53+
- `read-only` flag for testing (#529).
54+
- Bump actions/checkout (#509, #458) and others (#533).
3255
- ensure local and remote pre-commit execution are the same for this repo
3356
(#463).
34-
- use new pkgdown hook in this repo (#460).
35-
- Use latest version of checkout action (#458).
36-
- improve spelling (#453).
3757

58+
**Other**
3859

39-
# precommit 0.3.2.9003 (2022-12-16)
60+
- Adjust to latest {roxygen2} CRAN release (#536).
4061

41-
- new hook `pkgdown` to emulate a {pkgdown} build for reference and
42-
articles (#393).
43-
- `codemeta-description-updated`, `roxygenize`, and
44-
`use-tidy-description` now all support a `root` argument that
45-
specifies the directory in the git repo that contains the R package.
46-
Defaults to `.` since for most R package git repos, the git and R package
47-
root coincide (#432, #438).
48-
- `style-files` now supports styling of R code in Quarto docs (#449).
4962

50-
# precommit 0.3.2.9000
63+
Changelog from dev releases is collapsed into this patch release at the time
64+
this release is created. If you need releases by dev release, i.e. 0.3.2.x,
65+
checkout this file at git tag `v0.3.2.9020`.
66+
67+
A big thanks goes to all people who made this release reality:
68+
69+
[&#x0040;AliSajid](https://github.com/AliSajid), [&#x0040;averissimo](https://github.com/averissimo), [&#x0040;clarkliming](https://github.com/clarkliming), [&#x0040;danielinteractive](https://github.com/danielinteractive), [&#x0040;denn173](https://github.com/denn173), [&#x0040;dependabot[bot]](https://github.com/dependabot), [&#x0040;EzicJ](https://github.com/EzicJ), [&#x0040;fabianegli](https://github.com/fabianegli), [&#x0040;hadley](https://github.com/hadley), [&#x0040;IndrajeetPatil](https://github.com/IndrajeetPatil), [&#x0040;jashapiro](https://github.com/jashapiro), [&#x0040;joelnitta](https://github.com/joelnitta), [&#x0040;jonathanckt](https://github.com/jonathanckt), [&#x0040;jsnel](https://github.com/jsnel), [&#x0040;kcphila](https://github.com/kcphila), [&#x0040;KoderKow](https://github.com/KoderKow), [&#x0040;KyleDCox](https://github.com/KyleDCox), [&#x0040;lorenzwalthert](https://github.com/lorenzwalthert), [&#x0040;m-muecke](https://github.com/m-muecke), [&#x0040;mythichamster](https://github.com/mythichamster), [&#x0040;ns-rse](https://github.com/ns-rse), [&#x0040;pre-commit-ci[bot]](https://github.com/pre-commit-ci), [&#x0040;russHyde](https://github.com/russHyde), [&#x0040;sempwn](https://github.com/sempwn), [&#x0040;stefanoborini](https://github.com/stefanoborini), [&#x0040;thefabnab](https://github.com/thefabnab), [&#x0040;TNonet](https://github.com/TNonet), [&#x0040;TymekDev](https://github.com/TymekDev), and [&#x0040;yogat3ch](https://github.com/yogat3ch).
70+
5171

52-
- `use_ci()` is now documented to take `NA`, not `NULL` for argument
53-
`ci` (#431).
54-
- `deps-in-desc`supports a `root` argument that specifies the directory in
55-
the git repo that contains the R package. Defaults to `.` since for most R
56-
package git repos, the git and R package root coincide.
5772

5873
# precommit 0.3.2
5974

R/testing.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ not_conda <- function() {
274274
#' @param git Whether or not to init git in the local directory.
275275
#' @param autoupdate Whether or not to run [autoupdate()] as part of this
276276
#' fixture.
277-
#' @param use_precommmit Whether or not to [use_precommit()].
277+
#' @param use_precommit Whether or not to [use_precommit()].
278278
#' @keywords internal
279279
local_test_setup <- function(git = TRUE,
280280
use_precommit = FALSE,

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
editor_options:
3+
markdown:
4+
wrap: 72
5+
---
16

27
<!-- README.md is generated from README.Rmd. Please edit that file -->
38

@@ -42,11 +47,13 @@ The goal of this package is to twofold:
4247
## Why do I need pre-commit hooks?
4348

4449
<figure>
50+
4551
<img src="man/figures/pre-commit-meme.jpeg" width="500" align="center" href="https://twitter.com/dataandme/status/1255510799273132032"/>
46-
<figcaption>
47-
By <a href=https://twitter.com/dataandme/status/1255510799273132032>Mara
48-
Averick</a>
49-
</figcaption>
52+
53+
<figcaption>By
54+
<a href=https://twitter.com/dataandme/status/1255510799273132032>Mara
55+
Averick</a></figcaption>
56+
5057
</figure>
5158

5259
For a more in-depth explanation and even more reasons, see

cran-comments.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
This is a submission due to changes in R devel.
1+
This is a submission due to changes in roxygen2 7.3.0 and fixes also some issues
2+
related to R devel changes.
23

34
## Test environments
45

inst/WORDLIST

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ behaviour
1313
bioconductor
1414
bliblablupp
1515
cfe
16+
Changelog
1617
ci
1718
CLI
1819
cli

man/local_test_setup.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

revdep/.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*.html
2+
checks
3+
checks.noindex
4+
cloud.noindex
5+
data.sqlite
6+
library
7+
library.noindex

revdep/README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Platform
2+
3+
|field |value |
4+
|:--------|:------------------------------------------------------------------------------------------|
5+
|version |R version 4.3.0 (2023-04-21) |
6+
|os |macOS 14.2.1 |
7+
|system |aarch64, darwin20 |
8+
|ui |RStudio |
9+
|language |(EN) |
10+
|collate |en_US.UTF-8 |
11+
|ctype |en_US.UTF-8 |
12+
|tz |Europe/Zurich |
13+
|date |2024-01-21 |
14+
|rstudio |2023.12.0+369 Ocean Storm (desktop) |
15+
|pandoc |3.1.1 @ /Applications/RStudio.app/Contents/Resources/app/quarto/bin/tools/ (via rmarkdown) |
16+
17+
# Dependencies
18+
19+
|package |old |new |Δ |
20+
|:---------|:-----|:------|:--|
21+
|precommit |0.3.2 |0.4.0 |* |
22+
|cli |NA |3.6.2 |* |
23+
|digest |NA |0.6.34 |* |
24+
|glue |NA |1.7.0 |* |
25+
|lifecycle |NA |1.0.4 |* |
26+
|purrr |NA |1.0.2 |* |
27+
|R.utils |NA |2.12.3 |* |
28+
|rlang |NA |1.1.3 |* |
29+
|rprojroot |NA |2.0.4 |* |
30+
|vctrs |NA |0.6.5 |* |
31+
|withr |NA |3.0.0 |* |
32+
|yaml |NA |2.3.8 |* |
33+
34+
# Revdeps

revdep/cran.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## revdepcheck results
2+
3+
We checked 1 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
4+
5+
* We saw 0 new problems
6+
* We failed to check 0 packages

revdep/failures.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*Wow, no problems at all. :)*

revdep/problems.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*Wow, no problems at all. :)*

0 commit comments

Comments
 (0)