Skip to content

Commit

Permalink
add .pre-commit-config.yaml; closes #39
Browse files Browse the repository at this point in the history
  • Loading branch information
bfgray3 committed Nov 3, 2019
1 parent 18e5403 commit dce97d7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
^\.lintr$
^.*\.Rproj$
^cattonum\.Rproj$
^\.Rproj\.user$
^\.travis\.yml$
.Rprofile
Expand All @@ -11,3 +11,4 @@
^LICENSE\.md$
^revdep$
^\.github$
^\.pre-commit-config.yaml$
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
repos:
# TODO: make sure no tabs or CRLF
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.0.0.9016
hooks:
- id: no-browser-statement
- id: parsable-R
- id: readme-rmd-rendered
- id: style-files
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: detect-private-key
- id: no-commit-to-branch
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]

0 comments on commit dce97d7

Please sign in to comment.