Skip to content

Commit 7aedd3c

Browse files
committed
chore: update pre-commit config
1 parent 0667272 commit 7aedd3c

File tree

1 file changed

+45
-48
lines changed

1 file changed

+45
-48
lines changed

.pre-commit-config.yaml

Lines changed: 45 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,57 @@
11
# All available hooks: https://pre-commit.com/hooks.html
22
# R specific hooks: https://github.com/lorenzwalthert/precommit
33
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
66
hooks:
7-
- id: style-files
7+
- id: style-files
88
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
4841
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
5247
exclude: '\.Rd'
53-
- repo: local
48+
- repo: local
5449
hooks:
55-
- id: forbid-to-commit
50+
- id: forbid-to-commit
5651
name: Don't commit common R artifacts
5752
entry: Cannot commit .Rhistory, .RData, .Rds or .rds.
5853
language: fail
5954
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

Comments
 (0)