2020-11-28 15:14:50 +03:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: 9136088a246768144165fcc3ecc3d31bb686920a # frozen: v3.3.0
|
|
|
|
hooks:
|
|
|
|
- id: check-yaml
|
2020-12-08 03:00:09 +03:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
2022-01-16 19:06:52 +03:00
|
|
|
- id: rustfmt
|
|
|
|
name: Check formatting
|
|
|
|
entry: cargo fmt --
|
|
|
|
language: system
|
|
|
|
files: \.rs$
|
|
|
|
- id: tests
|
|
|
|
name: Run tests
|
|
|
|
entry: cargo test
|
|
|
|
language: system
|
|
|
|
files: \.rs$
|
|
|
|
pass_filenames: false
|
|
|
|
- id: clippy
|
|
|
|
name: Check clippy lints
|
|
|
|
entry: cargo clippy -- -D warnings
|
|
|
|
language: system
|
|
|
|
files: \.rs$
|
|
|
|
pass_filenames: false
|
2021-04-11 16:39:54 +03:00
|
|
|
- id: README
|
|
|
|
name: Render README.md
|
|
|
|
entry: docs/generate.sh
|
2020-12-08 03:00:09 +03:00
|
|
|
language: script
|
2021-04-11 16:39:54 +03:00
|
|
|
files: ^(README\.md)|(docs/.*)
|