-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (48 loc) · 1.33 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (48 loc) · 1.33 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.11
hooks:
# Run the linter.
- id: ruff-check
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-json
- id: check-yaml
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: .*\.md
- id: debug-statements
- id: mixed-line-ending
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: rst-backticks
- repo: https://github.com/executablebooks/mdformat
rev: 1.0.0 # Use the ref you want to point at
hooks:
- id: mdformat
exclude: TEST_FAIL_TEMPLATE.md|bug_report.md|feature_request.md
args: ["--number"]
additional_dependencies:
- mdformat-gfm
- mdformat-footnote
- mdformat-gfm-alerts
- mdformat-ruff
- mdformat-toc
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.3 # Use the sha / tag you want to point at
hooks:
- id: clang-format
args: ["-style=Google"]
exclude: ^notebooks/