-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
38 lines (38 loc) · 1.06 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-yaml
- id: pretty-format-json
args: [--autofix, --indent=4]
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
args: [--config=.github\.gitlint, --msg-filename]
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- id: cargo-check
- repo: local
hooks:
- id: clippy
name: Run clippy linter
entry: cargo clippy -- -A non_snake_case
language: system
pass_filenames: false
ci:
skip:
- fmt
- cargo-check
- clippy