|
1 | 1 | # All available hooks: https://pre-commit.com/hooks.html
|
2 | 2 | # R specific hooks: https://github.com/lorenzwalthert/precommit
|
3 | 3 | repos:
|
4 |
| -- repo: https://github.com/lorenzwalthert/precommit |
5 |
| - rev: v0.3.2.9001 |
| 4 | + - repo: https://github.com/lorenzwalthert/precommit |
| 5 | + rev: v0.4.2 |
6 | 6 | hooks:
|
7 |
| - - id: style-files |
| 7 | + - id: style-files |
8 | 8 | args: [--style_pkg=styler.mlr, --style_fun=mlr_style]
|
9 |
| - - id: roxygenize |
10 |
| - # codemeta must be above use-tidy-description when both are used |
11 |
| - # - id: codemeta-description-updated |
12 |
| - - id: use-tidy-description |
13 |
| - # - id: spell-check |
14 |
| - # exclude: > |
15 |
| - # (?x)^( |
16 |
| - # .*\.[rR]| |
17 |
| - # .*\.feather| |
18 |
| - # .*\.jpeg| |
19 |
| - # .*\.pdf| |
20 |
| - # .*\.png| |
21 |
| - # .*\.py| |
22 |
| - # .*\.RData| |
23 |
| - # .*\.rds| |
24 |
| - # .*\.Rds| |
25 |
| - # .*\.Rproj| |
26 |
| - # .*\.sh| |
27 |
| - # (.*/|)\.gitignore| |
28 |
| - # (.*/|)\.pre-commit-.*| |
29 |
| - # (.*/|)\.Rbuildignore| |
30 |
| - # (.*/|)\.Renviron| |
31 |
| - # (.*/|)\.Rprofile| |
32 |
| - # (.*/|)\.travis\.yml| |
33 |
| - # (.*/|)appveyor\.yml| |
34 |
| - # (.*/|)NAMESPACE| |
35 |
| - # (.*/|)renv/settings\.dcf| |
36 |
| - # (.*/|)renv\.lock| |
37 |
| - # (.*/|)WORDLIST| |
38 |
| - # \.github/workflows/.*| |
39 |
| - # data/.*| |
40 |
| - # )$ |
41 |
| - # - id: lintr |
42 |
| - - id: readme-rmd-rendered |
43 |
| - - id: parsable-R |
44 |
| - - id: no-browser-statement |
45 |
| - - id: deps-in-desc |
46 |
| -- repo: https://github.com/pre-commit/pre-commit-hooks |
47 |
| - rev: v4.3.0 |
| 9 | + additional_dependencies: |
| 10 | + - mlr-org/styler.mlr |
| 11 | + - id: roxygenize |
| 12 | + additional_dependencies: |
| 13 | + - Ecdat |
| 14 | + - GGally |
| 15 | + - R6 |
| 16 | + - Rcpp |
| 17 | + - bujar |
| 18 | + - checkmate |
| 19 | + - coxed |
| 20 | + - data.table |
| 21 | + - ggplot2 |
| 22 | + - mlr3 |
| 23 | + - mlr3misc |
| 24 | + - mlr3pipelines |
| 25 | + - mlr3viz |
| 26 | + - paradox |
| 27 | + - simsurv |
| 28 | + - survAUC |
| 29 | + - survival |
| 30 | + - survivalmodels |
| 31 | + - xoopR/distr6 |
| 32 | + # codemeta must be above use-tidy-description when both are used |
| 33 | + - id: use-tidy-description |
| 34 | + - id: readme-rmd-rendered |
| 35 | + - id: parsable-R |
| 36 | + - id: no-browser-statement |
| 37 | + - id: deps-in-desc |
| 38 | + exclude: data-raw|inst |
| 39 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 40 | + rev: v4.6.0 |
48 | 41 | hooks:
|
49 |
| - - id: check-added-large-files |
50 |
| - args: ['--maxkb=200'] |
51 |
| - - id: end-of-file-fixer |
| 42 | + - id: check-added-large-files |
| 43 | + args: [--maxkb=200] |
| 44 | + - id: file-contents-sorter |
| 45 | + files: '^\.Rbuildignore$' |
| 46 | + - id: end-of-file-fixer |
52 | 47 | exclude: '\.Rd'
|
53 |
| -- repo: local |
| 48 | + - repo: local |
54 | 49 | hooks:
|
55 |
| - - id: forbid-to-commit |
| 50 | + - id: forbid-to-commit |
56 | 51 | name: Don't commit common R artifacts
|
57 | 52 | entry: Cannot commit .Rhistory, .RData, .Rds or .rds.
|
58 | 53 | language: fail
|
59 | 54 | files: '\.Rhistory|\.RData|\.Rds|\.rds$'
|
60 |
| - # `exclude: <regex>` to allow committing specific files. |
| 55 | + exclude: 'inst/extdata/unemployment.rds' |
| 56 | +ci: |
| 57 | + autoupdate_schedule: monthly |
0 commit comments