-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
34 lines (32 loc) · 1007 Bytes
/
.pre-commit-config.yaml
File metadata and controls
34 lines (32 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json
- id: check-yaml
- id: check-case-conflict
- id: check-added-large-files
args: ["--maxkb=1000", "--enforce-all"]
- id: detect-private-key
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.4.3.9009
hooks:
- id: use-tidy-description
- id: lintr
verbose: true
files: ^(R/).*\.(R|r|Rmd|rmd)$
exclude: ^R/(ui\.R|server\.R|runApp\.R)$
- id: readme-rmd-rendered
- id: no-browser-statement
- id: pkgdown
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args: ["--write-changes"] # Automatically fix spelling errors if only one suggestion
files: ^.*\.(R|md|Rmd)$ # Only apply to R and Markdown files
ci:
autoupdate_schedule: monthly
skip: [pkgdown]