diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ce04f17a2..05dab09d9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,34 +31,34 @@ repos: - id: spell-check exclude: > (?x)^( - (.*/|)NAMESPACE| - (.*/|)WORDLIST| - (.*/|)\.Rbuildignore| - (.*/|)\.Renviron| - (.*/|)\.Rprofile| - (.*/|)\.gitignore| - (.*/|)\.pre-commit-.*| - (.*/|)\.travis\.yml| - (.*/|)appveyor\.yml| - (.*/|)renv/settings\.dcf| - (.*/|)renv\.lock| - .*\.RData| - .*\.Rds| - .*\.Rproj| .*\.[rR]| .*\.feather| .*\.jpeg| .*\.pdf| .*\.png| .*\.py| + .*\.RData| .*\.rds| + .*\.Rds| + .*\.Rproj| .*\.sh| - LICENSE| + (.*/|)\.gitignore| + (.*/|)\.pre-commit-.*| + (.*/|)\.Rbuildignore| + (.*/|)\.Renviron| + (.*/|)\.Rprofile| + (.*/|)\.travis\.yml| + (.*/|)appveyor\.yml| + (.*/|)NAMESPACE| + (.*/|)renv/settings\.dcf| + (.*/|)renv\.lock| + (.*/|)WORDLIST| \.github/workflows/.*| data/.*| inst/hooks/.*| inst/pre-commit-.*| inst/usethis-legacy-hook| + LICENSE| renv/.*| revdep/.*| tests/testthat/in/.*| @@ -121,7 +121,7 @@ repos: - yaml - purrr - glue - - rlang + - rlang@1.3.0 - git2r - desc - lorenzwalthert/precommit diff --git a/DESCRIPTION b/DESCRIPTION index 2ca570c1c..e19751ae1 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: precommit Title: Pre-Commit Hooks -Version: 0.4.3.9030 +Version: 0.4.3.9031 Author: Lorenz Walthert Maintainer: Lorenz Walthert Description: Useful git hooks for R building on top of the multi-language diff --git a/tests/testthat/in/parsable-roxygen-fail.R b/tests/testthat/in/parsable-roxygen-fail.R index b3798d26f..a4795e261 100644 --- a/tests/testthat/in/parsable-roxygen-fail.R +++ b/tests/testthat/in/parsable-roxygen-fail.R @@ -2,13 +2,14 @@ #' #' This function is great! But \code{oh dear, a missing brace... #' -#' And isn't that a multi-line example? We should probably use @examples... +#' And isn't that a multi-line example? We should probably use +#' @examples... We do. #' #' @param x A parameter. #' #' @returns Invisible `NULL`. #' -#' @example +#' @examples #' some_function(10) #' some_function(11) #' diff --git a/tests/testthat/test-hook-parsable-roxygen.R b/tests/testthat/test-hook-parsable-roxygen.R index 075ede325..ef6c4b0a3 100644 --- a/tests/testthat/test-hook-parsable-roxygen.R +++ b/tests/testthat/test-hook-parsable-roxygen.R @@ -22,7 +22,7 @@ run_test( "parsable-roxygen", suffix = "-fail.R", std_out = "Roxygen commentary", - std_err = "@description has mismatched braces or quotes", + std_err = "description has mismatched braces or quotes", read_only = TRUE )