-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
46 lines (43 loc) · 1.25 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
40
41
42
43
44
45
46
exclude: ^test.txt|(.idea|.vscode)/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
# https://github.com/pre-commit/pre-commit-hooks
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.8.1"
hooks:
- id: ruff
name: python ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
name: python ruff format
args: [--check]
- repo: local
hooks:
- id: rust-fmt
name: rust fmt format
description: Run cargo fmt on files included in the commit.
entry: cargo fmt
pass_filenames: false
types: [file, rust]
language: system
- id: rust-clippy
name: rust clippy lint
description: Run cargo clippy on files included in the commit.
entry: cargo clippy
pass_filenames: false
types: [file, rust]
language: system