Skip to content

Commit

Permalink
Add pre-commit config (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrnold authored Feb 8, 2024
1 parent 10a93c0 commit c014429
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
^appveyor\.yml$
^\.github$
^CONTRIBUTING.*$
^\.pre-commit-config\.yaml$
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.5.0'
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: 'no-commit-to-branch'
args: ['--branch', 'main']

0 comments on commit c014429

Please sign in to comment.