@@ -4,17 +4,22 @@ default_stages: [commit]
44
55repos :
66- repo : https://github.com/lorenzwalthert/precommit
7- rev : v0.1.3.9014
7+ rev : v0.2.2.9006
88 hooks :
99 - id : style-files
1010 args : [--style_pkg=styler, --style_fun=tidyverse_style]
1111 exclude : >
1212 (?x)^(
13- tests/testthat/.*/.*\.R(md)?|
13+ tests/testthat/.*/.*\.R(md|nw )?|
1414 vignettes/customizing_styler\.Rmd|
1515 tests/testthat/public-api/xyzfile-rnw/random4\.Rnw|
16+ vignettes/detect-alignment\.Rmd|
17+ tests/testmanual/addins/.*invalid.*|
18+ tests/testmanual/addins/r-valid\.R|
1619 )$
1720 - id : roxygenize
21+ additional_dependencies :
22+ - r-lib/pkgapi
1823 - id : use-tidy-description
1924 - id : spell-check
2025 exclude : >
@@ -47,9 +52,11 @@ repos:
4752 exclude : >
4853 (?x)^(
4954 tests/testthat/public-api/xyzaddin/addin_region-.*|
50- tests/testmanual/addins/r-invalid\.R|
55+ tests/.*invalid.*|
56+ tests/testthat/rmd/no-tidy-out\.Rmd|
5157 tests/testthat/escaping/basic-escape-out\.R|
52- tests/testthat/indention_operators/base_pipe_and_assignment-.*|
58+ tests/testthat/indention_operators/.*pipe.*|
59+ tests/testthat/line_breaks_and_other/.*pipe.*|
5360 tests/testthat/exception_handling/parser-error.R|
5461 )$
5562 - id : no-browser-statement
@@ -58,25 +65,38 @@ repos:
5865 tests/testthat/public-api/xyzaddin/addin_region-.*|
5966 tests/testmanual/addins/r-invalid\.R|
6067 tests/testthat/escaping/basic-escape-out\.R|
61- tests/testthat/indention_operators/base_pipe_and_assignment-.*|
68+ tests/testthat/indention_operators/.*pipe.*|
69+ tests/testthat/line_breaks_and_other/.*pipe.*|
6270 tests/testthat/exception_handling/parser-error.R|
6371 )$
6472 - id : deps-in-desc
6573 exclude : >
6674 (?x)^(
6775 touchstone/.*|
68- tests/testmanual/addins/r- invalid\.R |
76+ tests/testmanual/addins/.* invalid.* |
6977 tests/testthat/escaping/basic-escape-out\.R|
7078 tests/testthat/rnw/011-conditional-eval-out\.Rnw|
7179 tests/testthat/.*\.R(md)?
7280 )$
7381 - repo : https://github.com/pre-commit/pre-commit-hooks
74- rev : v4.0.1
82+ rev : v4.1.0
7583 hooks :
7684 - id : check-added-large-files
7785 args : ['--maxkb=200']
86+ - id : file-contents-sorter
87+ files : " \\ .Rbuildignore$"
7888 - id : end-of-file-fixer
79- exclude : ' \.Rd'
89+ exclude : >
90+ (?x)^(
91+ \.Rd|
92+ tests/testthat/exception_handling/empty_file\.R|
93+ tests/testthat/parse_comments/eol_eof_spaces-.*|
94+ tests/testthat/reference-objects/.*|
95+ )$
96+ - repo : https://github.com/lorenzwalthert/gitignore-tidy
97+ rev : b3eaceb0bf2df137cc80f85b3943b6684f204c48
98+ hooks :
99+ - id : tidy-gitignore
80100- repo : local
81101 hooks :
82102 - id : forbid-to-commit
0 commit comments