-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
73 lines (73 loc) · 2.01 KB
/
.pre-commit-config.yaml
File metadata and controls
73 lines (73 loc) · 2.01 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
exclude: ^.idea/|.vscode/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.26
hooks:
- id: uv-lock
- id: uv-export
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.13
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.36.0
hooks:
- id: check-github-workflows
- id: check-dependabot
- id: check-readthedocs
- repo: https://github.com/adhtruong/mirrors-typos
# Cf: https://github.com/crate-ci/typos/issues/390
rev: v1.42.1
hooks:
- id: typos
args: [--force-exclude]
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.22.0
hooks:
- id: zizmor
- repo: https://github.com/executablebooks/mdformat
rev: 1.0.0
hooks:
- id: mdformat
additional_dependencies:
- mdformat-pyproject
- mdformat-myst
- mdformat-gfm
- mdformat-gfm-alerts
- mdformat-ruff
- mdformat-config
- mdformat-deflist
exclude: ^.github/.*\.md$
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.8.1
hooks:
- id: prettier
args: ["--print-width", "120"]
require_serial: true
types_or: [yaml]
- repo: https://github.com/biomejs/pre-commit
rev: v2.3.11
hooks:
- id: biome-check
types_or: [json, html, css]
files: ".*" # Override default files regex that excludes html, rely on `types_or` instead
- repo: https://github.com/tombi-toml/tombi-pre-commit
rev: v0.7.22
hooks:
- id: tombi-format
- repo: https://github.com/kynan/nbstripout
rev: 0.9.0
hooks:
- id: nbstripout