Skip to content

Commit

Permalink
Merge pull request #112 from geonnave/add-pre-commit-hook
Browse files Browse the repository at this point in the history
Add pre-commit config
  • Loading branch information
geonnave authored Oct 5, 2023
2 parents 7853302 + 4bf4c09 commit f7e94d9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# To use this hook:
# brew (or pip) install pre-commit
# pre-commit install

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks

files: '^.*(.*\.rs|README.md)$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files

- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt

0 comments on commit f7e94d9

Please sign in to comment.