forked from tlepoint/fhe.rs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
37 lines (36 loc) · 969 Bytes
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# https://pre-commit.com
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
args: [--allow-multiple-documents]
- id: detect-private-key
- id: forbid-new-submodules
- id: mixed-line-ending
- id: trailing-whitespace
- id: forbid-submodules
- repo: https://github.com/crate-ci/typos
rev: v1.16.17
hooks:
- id: typos
- repo: local
hooks:
- id: fmt
name: fmt
description: Format files
entry: cargo +nightly fmt
language: system
types: [rust]
args: ["--all", "--", "--check"]
- id: clippy
name: clippy
description: Run linter
entry: cargo clippy
language: system
types: [rust]
args: ["--all-targets", "--", "-D", "warnings"]
pass_filenames: false