-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
39 lines (38 loc) · 1.01 KB
/
.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
38
39
ci:
# Skip hooks requiring `just` to be installed
skip: [codespell, fmt, clippy]
repos:
# General
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["--fix=lf"]
- id: trailing-whitespace
- repo: local
hooks:
- id: codespell
name: Check for misspellings
description: Checks for common misspellings in text files
language: system
entry: just spellcheck
types: [text]
exclude_types: [image]
- id: fmt
name: Format files
description: Format files with cargo fmt
language: system
entry: just fmt
types: [rust]
- id: clippy
name: Lint code
description: Lint rust sources
language: system
entry: just clippy
types: [rust]
pass_filenames: false