-
Notifications
You must be signed in to change notification settings - Fork 168
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (55 loc) · 1.45 KB
/
.pre-commit-config.yaml
File metadata and controls
55 lines (55 loc) · 1.45 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: check-toml
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.6.2
hooks:
- id: prettier
exclude: docs/sheet/.*\.html$
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.8.19
hooks:
- id: uv-lock
- id: uv-export
args:
- --frozen
- --no-dev
- --group=docs
- --no-emit-project
- --no-annotate
- --output-file=docs/requirements.txt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.1 # also update pyproject.toml
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.20.0
hooks:
- id: blacken-docs
args: [--rst-literal-blocks]
additional_dependencies:
- black==25.1
- repo: local
hooks:
- id: rustfmt
name: rustfmt
entry: cargo fmt --
language: system
types: [rust]
pass_filenames: false
- id: clippy
name: clippy
entry: cargo clippy --quiet -- -D warnings
language: system
types: [rust]
pass_filenames: false