-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (51 loc) · 1.34 KB
/
.pre-commit-config.yaml
File metadata and controls
55 lines (51 loc) · 1.34 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: no-commit-to-branch
- id: check-added-large-files
exclude: pixi\.lock$
- id: check-json
exclude: \.(vscode|devcontainer)/.*\.json$
- id: check-merge-conflict
exclude: (data/.*/README\.md|\.rst)$
- id: check-shebang-scripts-are-executable
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.10
hooks:
# Run the formatter.
- id: ruff-format
# Run the linter.
- id: ruff-check
args: [--fix]
- repo: local
hooks:
- id: rustfmt
name: format rust
entry: rustfmt --edition 2021
language: system
types_or:
- rust
- id: dprint
name: format configuration files
entry: dprint fmt --allow-no-files
language: node
types_or:
- yaml
- toml
- json
additional_dependencies:
- dprint
- id: license-headers
name: add license headers
language: system
entry: ./utils/update-headers.py --error-on-change
types_or:
- python
- rust