Skip to content

Commit af37498

Browse files
drop check in name and add to pre-commit
1 parent 5483eab commit af37498

File tree

7 files changed

+15
-14
lines changed

7 files changed

+15
-14
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ repos:
8282
(?x)^(
8383
tests/testthat/in/.*|
8484
inst/renv-update\.R|
85-
inst/hooks/exported/pkgdown-check.R|
85+
inst/hooks/exported/pkgdown.R|
8686
renv/activate.R|
8787
vignettes/FAQ\.Rmd|
8888
)$
89-
# - id: pkgdown-check
89+
# - id: pkgdown
9090
- repo: https://github.com/pre-commit/pre-commit-hooks
9191
rev: v4.3.0
9292
hooks:

.pre-commit-hooks.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@
106106
files: '(\.[rR]profile|\.R|\.Rmd|\.Rnw|\.r|\.rmd|\.rnw)$'
107107
exclude: 'renv/activate\.R'
108108
minimum_pre_commit_version: "2.13.0"
109-
- id: pkgdown-check
110-
name: pkgdown-check
109+
- id: pkgdown
110+
name: pkgdown
111111
description: check if your {pkgdown} config file has the correct entries for references and articles
112-
entry: inst/hooks/exported/pkgdown-check.R
112+
entry: inst/hooks/exported/pkgdown.R
113113
language: script
114114
minimum_pre_commit_version: "2.13.0"
115115
files: '^man/|_pkgdown\.yml'

NEWS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ editor_options:
66

77
# precommit v0.3.2.9003
88

9-
- new hook `pkgdown-check` to emulate a {pkgdown} build for reference and
9+
- new hook `pkgdown` to emulate a {pkgdown} build for reference and
1010
articles (#393).
1111
- `codemeta-description-updated`, `roxygenize`, and
1212
`use-tidy-description` now all support a `root` argument that

inst/pre-commit-hooks.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@
106106
files: '(\.[rR]profile|\.R|\.Rmd|\.Rnw|\.r|\.rmd|\.rnw)$'
107107
exclude: 'renv/activate\.R'
108108
minimum_pre_commit_version: "2.13.0"
109-
- id: pkgdown-check
110-
name: pkgdown-check
109+
- id: pkgdown
110+
name: pkgdown
111111
description: check if your {pkgdown} config file has the correct entries for references and articles
112-
entry: inst/hooks/exported/pkgdown-check.R
112+
entry: inst/hooks/exported/pkgdown.R
113113
language: script
114114
minimum_pre_commit_version: "2.13.0"
115115
files: '^man/|_pkgdown\.yml'

tests/testthat/reference-objects/pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ repos:
4949
- id: no-browser-statement
5050
- id: no-debug-statement
5151
- id: deps-in-desc
52+
- id: pkgdown
5253
- repo: local
5354
hooks:
5455
- id: consistent-release-tag

tests/testthat/test-hooks.R

+4-4
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ run_test("codemeta-description-update",
561561
### pgkdown check ####
562562

563563
# success index
564-
run_test("pkgdown-check",
564+
run_test("pkgdown",
565565
file_name = c(
566566
"man/autoudpate.Rd" = "autoupdate.Rd",
567567
"_pkgdown.yml" = "_pkgdown-index.yml",
@@ -571,7 +571,7 @@ run_test("pkgdown-check",
571571
)
572572

573573
# failed index
574-
run_test("pkgdown-check",
574+
run_test("pkgdown",
575575
file_name = c(
576576
"man/flie-true.Rd" = "flie-true.Rd",
577577
"_pkgdown.yml" = "_pkgdown-index.yml",
@@ -582,7 +582,7 @@ run_test("pkgdown-check",
582582
)
583583

584584
# failed articles
585-
run_test("pkgdown-check",
585+
run_test("pkgdown",
586586
file_name = c(
587587
"vignettes/pkgdown.Rmd" = "pkgdown.Rmd",
588588
"_pkgdown.yml" = "_pkgdown-articles.yml",
@@ -593,7 +593,7 @@ run_test("pkgdown-check",
593593
)
594594

595595
# success index and article
596-
run_test("pkgdown-check",
596+
run_test("pkgdown",
597597
file_name = c(
598598
"man/autoudpate.Rd" = "autoupdate.Rd",
599599
"vignettes/pkgdown.Rmd" = "pkgdown.Rmd",

vignettes/available-hooks.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ This hook does not modify any file.
326326
0.3.3.00000.
327327

328328

329-
## `pkgdown-check`
329+
## `pkgdown`
330330

331331
Check if your {pkgdown} config file (e.g. `_pkgdown.yml` in your root) has the
332332
correct entries for references and articles.

0 commit comments

Comments
 (0)