diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b2ee8bef4..3ebc81d7f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ default_language_version: repos: - repo: https://github.com/lorenzwalthert/precommit - rev: v0.3.2.9003 + rev: v0.3.2.9005 hooks: - id: style-files args: @@ -97,11 +97,14 @@ repos: tests/testthat/rnw/011-conditional-eval-out\.Rnw| tests/testthat/.*\.R(md)? )$ + - id: pkgdown - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0 hooks: - id: check-added-large-files args: ["--maxkb=200"] + - id: check-yaml + - id: mixed-line-ending - id: file-contents-sorter files: "\\.Rbuildignore$" - id: end-of-file-fixer @@ -125,3 +128,7 @@ repos: language: fail files: '\.Rhistory|\.RData|\.Rds|\.rds$' # `exclude: ` to allow committing specific files. + +ci: + skip: [pkgdown] + autoupdate_schedule: monthly diff --git a/R/testing.R b/R/testing.R index 076849363..b83978360 100644 --- a/R/testing.R +++ b/R/testing.R @@ -161,13 +161,13 @@ style_empty <- function(text, base_indention = 0L) { transformers <- list( # transformer functions initialize = default_style_guide_attributes, - line_break = NULL, - space = NULL, - token = NULL, + line_break = NULL, + space = NULL, + token = NULL, # transformer options use_raw_indention = FALSE, - reindention = specify_reindention(), - indent_character = " ", + reindention = specify_reindention(), + indent_character = " ", NULL ) transformed_text <- parse_transform_serialize_r(text,