File tree Expand file tree Collapse file tree 1 file changed +37
-6
lines changed Expand file tree Collapse file tree 1 file changed +37
-6
lines changed Original file line number Diff line number Diff line change 2
2
# R specific hooks: https://github.com/lorenzwalthert/precommit
3
3
repos :
4
4
- repo : https://github.com/lorenzwalthert/precommit
5
- rev : v0.0.0.9040
5
+ rev : v0.1.0
6
6
hooks :
7
- - id : parsable-R
8
- - id : no-browser-statement
9
- # - id: lintr
10
- - id : readme-rmd-rendered
11
- - id : spell-check
12
7
- id : style-files
13
8
args : [--style_pkg=styler, --style_fun=tidyverse_style]
14
9
exclude : ' tests/testthat/.*/*\.R'
10
+ - id : roxygenize
11
+ - id : use-tidy-description
12
+ - id : spell-check
13
+ exclude : >
14
+ (?x)^(
15
+ data/.*|
16
+ (.*/|)\.Rprofile|
17
+ (.*/|)\.Renviron|
18
+ (.*/|)\.gitignore|
19
+ (.*/|)NAMESPACE|
20
+ (.*/|)WORDLIST|
21
+ (.*/|)\.travis.yml|
22
+ (.*/|)appveyor.yml|
23
+ (.*/|)\.Rbuildignore|
24
+ (.*/|)\.pre-commit-.*|
25
+ .*\.[rR]|
26
+ .*\.Rproj|
27
+ .*\.py|
28
+ .*\.feather|
29
+ .*\.rds|
30
+ .*\.Rds|
31
+ .*\.sh|
32
+ .*\.RData
33
+ )$
34
+ - id : readme-rmd-rendered
35
+ - id : parsable-R
36
+ - id : no-browser-statement
37
+ - id : deps-in-desc
15
38
- repo : https://github.com/pre-commit/pre-commit-hooks
16
39
rev : v2.5.0
17
40
hooks :
18
41
- id : check-added-large-files
19
42
args : ['--maxkb=200']
20
43
- id : end-of-file-fixer
21
44
exclude : ' \.Rd'
45
+ - repo : local
46
+ hooks :
47
+ - id : forbid-to-commit
48
+ name : Don't commit common R artifacts
49
+ entry : Cannot commit .Rhistory, .RData, .Rds or .rds.
50
+ language : fail
51
+ files : ' \.Rhistory|\.RData|\.Rds|\.rds$'
52
+ # `exclude: <regex>` to allow committing specific files.
You can’t perform that action at this time.
0 commit comments