Commit 25bd0fefd7

25bd0fefd72d484b0b3bb0c66ad8a1a5e9a51103

parent: b7e9f1c3fd

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2019-11-24 20:30 UTC

Add a pre-commit config file.

Layout: unified · split

.pre-commit-config.yaml added +22
@@ -0,0 +1,22 @@
1repos:
2- repo: https://github.com/pre-commit/pre-commit-hooks
3 rev: v2.2.3
4 hooks:
5 - id: check-yaml
6 - id: end-of-file-fixer
7 - id: trailing-whitespace
8
9- repo: local
10 hooks:
11 - id: fmt
12 name: fmt
13 language: system
14 types: [file, rust]
15 entry: cargo fmt -- --check
16
17 - id: test
18 name: test
19 language: system
20 files: '\.rs$'
21 entry: cargo test --lib
22 pass_filenames: false