Skip to content

Commit

Permalink
Merge pull request #110 from m-muecke/pre-commit
Browse files Browse the repository at this point in the history
chore: update pre-commit config
  • Loading branch information
sebffischer authored Aug 17, 2024
2 parents 4edcfa2 + bdf80d9 commit a4cfab9
Showing 1 changed file with 38 additions and 19 deletions.
57 changes: 38 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,43 @@
# All available hooks: https://pre-commit.com/hooks.html
# R specific hooks: https://github.com/lorenzwalthert/precommit
repos:
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.2.2.9009
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.4.2
hooks:
# any R project
- id: style-files
args: [--style_pkg=styler, --style_fun=mlr_style]
- id: lintr
args: [--warn_only]
- id: parsable-R
- id: no-browser-statement
- id: readme-rmd-rendered
# R package development
# - id: roxygenize
#- id: use-tidy-description
- id: deps-in-desc
# - id: codemeta-description-updated
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
- id: style-files
args: [--style_pkg=styler.mlr, --style_fun=mlr_style]
additional_dependencies:
- mlr-org/styler.mlr
- id: roxygenize
additional_dependencies:
- backports
- checkmate
- data.table
- digest
- paradox
- R6
# codemeta must be above use-tidy-description when both are used
- id: use-tidy-description
- id: readme-rmd-rendered
- id: parsable-R
- id: no-browser-statement
- id: deps-in-desc
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
args: ['--maxkb=200']
- id: check-added-large-files
args: [--maxkb=200]
- id: file-contents-sorter
files: '^\.Rbuildignore$'
- id: end-of-file-fixer
exclude: '\.Rd'
- repo: local
hooks:
- id: forbid-to-commit
name: Don't commit common R artifacts
entry: Cannot commit .Rhistory, .RData, .Rds or .rds.
language: fail
files: '\.Rhistory|\.RData|\.Rds|\.rds$'
# `exclude: <regex>` to allow committing specific files.
ci:
autoupdate_schedule: monthly

0 comments on commit a4cfab9

Please sign in to comment.