-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
72 lines (62 loc) · 2.25 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
72 lines (62 loc) · 2.25 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
ci:
autoupdate_schedule: monthly
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "3e8a8703264a2f4a69428a0aa4dcb512790b2c8c" # frozen: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 745be0411e3c150e246d527e531e5a221b8c3462 # frozen: v0.15.19
hooks:
- id: ruff-format
exclude: ^content/week01/cleanup_bessel\.ipynb$
- repo: https://github.com/adamchainz/blacken-docs
rev: fda77690955e9b63c6687d8806bafd56a526e45f # frozen: 1.20.0
hooks:
- id: blacken-docs
additional_dependencies: [black==26.*]
- repo: https://github.com/kynan/nbstripout
rev: 34071b78c181af3bf5af955c1426466e096fc3db # frozen: 0.9.1
hooks:
- id: nbstripout
- repo: https://github.com/rvben/rumdl-pre-commit
rev: "5c0245ee573b1dea03e8cdc5bd41bd449ea8962a" # frozen: v0.2.27
hooks:
- id: rumdl-fmt
- repo: https://github.com/rbubley/mirrors-prettier
rev: "06507ab9500d4a9919b5ebd76d9d5b7074f15c1f" # frozen: v3.8.4
hooks:
- id: prettier
exclude: '\.md$' # Markdown is handled by rumdl
- repo: https://github.com/codespell-project/codespell
rev: "2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a" # frozen: v2.4.2
hooks:
- id: codespell
args: ["-L", "hist,whet,classe,nd", "-w"]
exclude: "bun.lock"
- repo: local
hooks:
- id: disallow-caps
name: Disallow improper capitalization
language: pygrep
entry: PyBind|Numpy|Cmake|CCache|Github|PyTest
exclude: ^(.pre-commit-config.yaml|content/week04_package/precommit.md)$
- repo: https://github.com/PrincetonUniversity/blocklint
rev: e615ce15d9b6e78c0c776a01884fe35637346ad0 # frozen: v0.3.0
hooks:
- id: blocklint
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: e3eebf65325ccc992422292cb7a4baee967cf815 # frozen: v1.26.1
hooks:
- id: zizmor
files: "^\\.github"
args: [--persona=auditor]