-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
71 lines (68 loc) · 1.83 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
ci:
autoupdate_schedule: monthly
skip: [dprint-fmt, actionlint, cargo-clippy, cargo-fmt]
default_language_version:
python: python3.12
exclude: .github/workflows/release.yml # Autogenerated file
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py311-plus]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.5
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/crate-ci/typos
rev: v1.31.1
hooks:
- id: typos
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
hooks:
- id: mypy
- repo: https://github.com/AndrejOrsula/pre-commit-cargo
rev: 0.4.0
hooks:
- id: cargo-fmt
- id: cargo-clippy
args: [
"--all-targets",
"--all-features",
"--fix",
"--allow-staged",
"--allow-dirty",
]
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.5.2
hooks:
- id: zizmor
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint
language_version: 1.23.0
additional_dependencies:
- "github.com/wasilibs/go-shellcheck/cmd/[email protected]"
- repo: local
hooks:
- id: dprint-fmt
name: dprint
entry: /home/thibaut/.dprint/bin/dprint fmt --config dprint.json --allow-no-files
language: system
require_serial: true
types: [text]