Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update pre-commit config #110

Merged
merged 1 commit into from
Aug 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading