Skip to content

Commit 428e0f9

Browse files
Merge pull request #449 from lorenzwalthert/issue-392
Also style quarto docs
2 parents 1a5f04e + 30f2962 commit 428e0f9

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
description: style files with styler
1919
entry: Rscript inst/hooks/exported/style-files.R
2020
language: r
21-
files: '(\.[rR]profile|\.R|\.Rmd|\.Rnw|\.r|\.rmd|\.rnw)$'
21+
files: '(\.[rR]profile|\.[rR]|\.[rR]md|\.[rR]nw|\.[qQ]md)$'
2222
exclude: 'renv/activate\.R'
2323
minimum_pre_commit_version: "2.13.0"
2424
- id: no-browser-statement

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ editor_options:
55
---
66

77
# precommit v0.3.2.9001 (Development version)
8+
89
- `codemeta-description-updated`, `roxygenize`, and
910
`use-tidy-description` now all support a `root` argument that
1011
specifies the directory in the git repo that contains the R package.
1112
Defaults to `.` since for most R package git repos, the git and R package
1213
root coincide.
14+
- `style-files` now supports styling of R code in Quarto docs (#)
1315

1416
# precommit v0.3.2.9000
1517

inst/pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
description: style files with styler
1919
entry: Rscript inst/hooks/exported/style-files.R
2020
language: r
21-
files: '(\.[rR]profile|\.R|\.Rmd|\.Rnw|\.r|\.rmd|\.rnw)$'
21+
files: '(\.[rR]profile|\.[rR]|\.[rR]md|\.[rR]nw|\.[qQ]md)$'
2222
exclude: 'renv/activate\.R'
2323
minimum_pre_commit_version: "2.13.0"
2424
- id: no-browser-statement

0 commit comments

Comments
 (0)