Remove lintr id

This commit is contained in:
gnoblet 2025-07-02 11:52:53 +02:00
parent 406ee1ac68
commit 3add388e25

View file

@ -1,33 +1,33 @@
# All available hooks: https://pre-commit.com/hooks.html # All available hooks: https://pre-commit.com/hooks.html
# R specific hooks: https://github.com/lorenzwalthert/precommit # R specific hooks: https://github.com/lorenzwalthert/precommit
repos: repos:
- repo: https://github.com/lorenzwalthert/precommit - repo: https://github.com/lorenzwalthert/precommit
rev: v0.4.3.9012 rev: v0.4.3.9012
hooks: hooks:
- id: style-files - id: style-files
args: [--style_pkg=styler, --style_fun=tidyverse_style] args: [--style_pkg=styler, --style_fun=tidyverse_style]
- id: roxygenize - id: roxygenize
# roxygen requires loading pkg -> add dependencies from DESCRIPTION # roxygen requires loading pkg -> add dependencies from DESCRIPTION
additional_dependencies: additional_dependencies:
- ggplot2 - ggplot2
- rlang - rlang
- grDevices - grDevices
- glue - glue
- scales - scales
- ggtext - ggtext
- ggrepel - ggrepel
- tidyr - tidyr
- dplyr - dplyr
- ggalluvial - ggalluvial
- viridisLite - viridisLite
- waffle - waffle
- stringr - stringr
- checkmate - checkmate
# codemeta must be above use-tidy-description when both are used # codemeta must be above use-tidy-description when both are used
# - id: codemeta-description-updated # - id: codemeta-description-updated
- id: use-tidy-description - id: use-tidy-description
- id: spell-check - id: spell-check
exclude: > exclude: >
(?x)^( (?x)^(
.*\.[rR]| .*\.[rR]|
@ -57,31 +57,30 @@ repos:
\.github/workflows/.*| \.github/workflows/.*|
data/.*| data/.*|
)$ )$
- id: lintr - id: readme-rmd-rendered
- id: readme-rmd-rendered - id: parsable-R
- id: parsable-R - id: no-browser-statement
- id: no-browser-statement - id: no-print-statement
- id: no-print-statement - id: no-debug-statement
- id: no-debug-statement - id: deps-in-desc
- id: deps-in-desc - id: pkgdown
- id: pkgdown - repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 rev: v5.0.0
hooks: hooks:
- id: check-added-large-files - id: check-added-large-files
args: ['--maxkb=200'] args: ["--maxkb=200"]
- id: file-contents-sorter - id: file-contents-sorter
files: '^\.Rbuildignore$' files: '^\.Rbuildignore$'
- id: end-of-file-fixer - id: end-of-file-fixer
exclude: '\.Rd' exclude: '\.Rd'
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config - repo: https://github.com/pre-commit-ci/pre-commit-ci-config
rev: v1.6.1 rev: v1.6.1
hooks: hooks:
# Only required when https://pre-commit.ci is used for config validation # Only required when https://pre-commit.ci is used for config validation
- id: check-pre-commit-ci-config - id: check-pre-commit-ci-config
- repo: local - repo: local
hooks: hooks:
- id: forbid-to-commit - id: forbid-to-commit
name: Don't commit common R artifacts name: Don't commit common R artifacts
entry: Cannot commit .Rhistory, .RData, .Rds or .rds. entry: Cannot commit .Rhistory, .RData, .Rds or .rds.
language: fail language: fail
@ -89,5 +88,5 @@ repos:
# `exclude: <regex>` to allow committing specific files # `exclude: <regex>` to allow committing specific files
ci: ci:
autoupdate_schedule: monthly autoupdate_schedule: monthly
skip: [pkgdown] skip: [pkgdown]