Skip to content

Commit 38a450c

Browse files
committed
chore: added pre-commit hooks
1 parent 9ebb462 commit 38a450c

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
^CRAN-SUBMISSION$
1515
^README\.qmd$
1616
^revdep$
17+
^\.pre-commit-config\.yaml$

.pre-commit-config.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
default_install_hook_types:
2+
- pre-commit
3+
- commit-msg
4+
- post-commit
5+
6+
repos:
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v6.0.0
9+
hooks:
10+
- id: check-added-large-files
11+
- id: end-of-file-fixer
12+
- id: trailing-whitespace
13+
args: [ --markdown-linebreak-ext=md ]
14+
- id: detect-private-key
15+
16+
- repo: https://github.com/uker-troi-lab/commit_hooks.git
17+
rev: v0.0.1
18+
hooks:
19+
- id: check-commit-msg
20+
21+
- repo: https://github.com/kapsner/autonewsmd
22+
rev: 6cf561a825945de4c2a87a7a71bd5300a5a6e73c
23+
hooks:
24+
- id: changelog-helper
25+
- id: recreate-changelog

0 commit comments

Comments
 (0)