Files
fhe.rs/.pre-commit-config.yaml
Tancrède Lepoint 5c0778ebc2 Encrypter (#158)
* Ignore Encrypter/Encryptor typo. Fixes #155

* Update typos. Ignore Encrypter/Encryptor typo. Fixes #155
2022-12-29 10:02:34 -05:00

37 lines
938 B
YAML

# https://pre-commit.com
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.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
- repo: https://github.com/crate-ci/typos
rev: v1.13.6
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