-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
52 lines (51 loc) · 1.16 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
ci:
autoupdate_schedule: quarterly
autoupdate_branch: 'trunk'
autofix_prs: false
# rust does not work on pre-commit.ci
skip: [fmt, check, clippy]
repos:
- repo: https://github.com/backplane/pre-commit-rust-hooks
rev: v1.1.0
hooks:
- id: fmt
- id: check
- id: clippy
args:
- --all-targets
- --all-features
- --
- -Dwarnings
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v5.0.0'
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-case-conflict
- id: mixed-line-ending
- repo: https://github.com/rhysd/actionlint
rev: v1.7.3
hooks:
- id: actionlint
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.6.9'
hooks:
- id: ruff-format
- id: ruff
- repo: https://github.com/glotzerlab/fix-license-header
rev: v0.4.1
hooks:
- id: fix-license-header
name: Fix license headers
types_or: [rust]
args:
- --license-file=LICENSE
- --add=Part of row, released under the BSD 3-Clause License.
- repo: https://github.com/crate-ci/typos
rev: v1.26.0
hooks:
- id: typos
exclude_types: [css]