feat: initial commit
This commit is contained in:
commit
57a76ea7f6
11
.pre-commit-config.yaml
Normal file
11
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
sha: 5bf6c09bfa1297d3692cadd621ef95f1284e33c0
|
||||||
|
hooks:
|
||||||
|
- id: check-yaml
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit
|
||||||
|
sha: 1be4e4f82e31336fa5fca096c962c72ac0041537
|
||||||
|
hooks:
|
||||||
|
- id: validate_config
|
||||||
|
- id: validate_manifest
|
7
.pre-commit-hooks.yaml
Normal file
7
.pre-commit-hooks.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
- id: fmt
|
||||||
|
name: fmt
|
||||||
|
description: Format files with rustfmt.
|
||||||
|
entry: rustfmt
|
||||||
|
language: system
|
||||||
|
files: \.(rs|rlib)$
|
||||||
|
args: ['--write-mode=overwrite']
|
12
README.md
Normal file
12
README.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# Rust hooks for pre-commit
|
||||||
|
|
||||||
|
[Rust](https://www.rust-lang.org) tools package for [pre-commit](http://pre-commit.com).
|
||||||
|
|
||||||
|
## Using rust tools with pre-commit
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- repo: git://github.com/doublify/pre-commit-rust
|
||||||
|
sha: master
|
||||||
|
hooks:
|
||||||
|
- id: fmt
|
||||||
|
```
|
7
hooks.yaml
Normal file
7
hooks.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
- id: fmt
|
||||||
|
name: fmt
|
||||||
|
description: Format files with rustfmt.
|
||||||
|
entry: rustfmt
|
||||||
|
language: system
|
||||||
|
files: \.(rs|rlib)$
|
||||||
|
args: ['--write-mode=overwrite']
|
Loading…
Reference in a new issue