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
|
2023-09-26 09:33:41 +03:00
|
|
|
rev: 38b88246ccc552bffaaf54259d064beeee434539 # frozen: v4.0.1
|
2020-11-28 15:14:50 +03:00
|
|
|
hooks:
|
2023-09-26 09:33:41 +03:00
|
|
|
- id: check-case-conflict
|
|
|
|
- id: check-symlinks
|
2020-11-28 15:14:50 +03:00
|
|
|
- id: check-yaml
|
2023-09-26 09:33:41 +03:00
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: mixed-line-ending
|
|
|
|
- id: trailing-whitespace
|
|
|
|
exclude: '^(README.md|tests/testdata/expected/.*)$'
|
2020-12-08 03:00:09 +03:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
2022-01-16 19:06:52 +03:00
|
|
|
- id: rustfmt
|
|
|
|
name: Check formatting
|
2024-08-03 14:38:23 +03:00
|
|
|
entry: cargo +nightly fmt --
|
2022-01-16 19:06:52 +03:00
|
|
|
language: system
|
|
|
|
files: \.rs$
|
|
|
|
- id: tests
|
|
|
|
name: Run tests
|
2024-08-03 14:17:45 +03:00
|
|
|
entry: cargo test --all-targets --all-features
|
2022-01-16 19:06:52 +03:00
|
|
|
language: system
|
|
|
|
files: \.rs$
|
|
|
|
pass_filenames: false
|
|
|
|
- id: clippy
|
|
|
|
name: Check clippy lints
|
2024-08-03 14:17:45 +03:00
|
|
|
entry: cargo clippy --all-targets --all-features -- -D warnings
|
2022-01-16 19:06:52 +03:00
|
|
|
language: system
|
|
|
|
files: \.rs$
|
|
|
|
pass_filenames: false
|