-
Notifications
You must be signed in to change notification settings - Fork 9
/
.pre-commit-config.yaml
executable file
·37 lines (36 loc) · 1.08 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
repos:
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.1.3.9133
hooks:
- id: readme-rmd-rendered # make sure README.Rmd is rendered to README.md
- id: parsable-R
exclude: >
(?x)^(
tests/testthat/in/style-files-fail-parse\.R|
tests/testthat/in/parsable-R-fail\.R|
)$
- id: style-files # style code in the tidyverse style
args: [--indent_by=4]
exclude: >
(?x)^(
tests/testthat/in/.*\.R|
renv/.*
)$
- id: deps-in-desc # all dependencies pkg::func are in listed in dec
args: [--allow_private_imports]
exclude: >
(?x)^(
tests/testthat/in/.*|
inst/renv-update\.R|
renv/activate.R|
vignettes/FAQ\.Rmd|
)$
- id: lintr
args: [--warn_only]
verbose: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files # make sure no large files commited
- id: end-of-file-fixer
exclude: '\.Rd'