Add pre-commit-config, run pre-commit on all files
This commit is contained in:
parent
50d07ffea5
commit
59963cdec1
8 changed files with 18 additions and 7 deletions
11
.pre-commit-config.yaml
Normal file
11
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
files: "\\.rs$"
|
||||
- id: end-of-file-fixer
|
||||
files: "\\.rs$"
|
||||
- id: mixed-line-ending
|
||||
args: [--fix=lf]
|
||||
files: "\\.rs$"
|
||||
Loading…
Add table
Add a link
Reference in a new issue