-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
92 lines (92 loc) · 2.68 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
92 lines (92 loc) · 2.68 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # Use the latest version or a specific tag
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
exclude: |
(?x)^(
conda/recipe/meta.yaml|
conda/recipes/ast_canopy/meta.yaml|
conda/recipes/numbast/meta.yaml|
conda/recipes/numbast_extensions/meta.yaml
)$
- id: debug-statements
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: trailing-whitespace
- id: mixed-line-ending
args: ['--fix=lf']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.4
hooks:
- id: ruff
args: [--fix, --config, pyproject.toml]
- id: ruff-format
args: [--config, pyproject.toml]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v20.1.0'
hooks:
- id: clang-format
exclude: |
(?x)^(
ast_canopy/tests/host/cuda_headers/include/cuda.h
)$
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
- tomli
args: ["--toml", "pyproject.toml", "--ignore-words-list", "inout,thirdparty"]
- repo: https://github.com/google/yamlfmt
rev: v0.16.0
hooks:
- id: yamlfmt
exclude: |
(?x)^(
conda/recipe/meta.yaml|
conda/recipes/ast_canopy/meta.yaml|
conda/recipes/numbast/meta.yaml|
conda/recipes/numbast_extensions/meta.yaml
)$
- repo: https://github.com/ComPWA/taplo-pre-commit
rev: v0.9.3
hooks:
- id: taplo-format
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24
hooks:
- id: validate-pyproject
additional_dependencies: ["validate-pyproject-schema-store[all]==2025.11.21"]
- repo: https://github.com/PyCQA/doc8
rev: v2.0.0
hooks:
- id: doc8
args: ["--max-line-length=100"]
# Ignore built documentation outputs
exclude: |
(?x)^(
docs/build/|
.*_build/|
.*build/html/
)$
- repo: https://github.com/rstcheck/rstcheck
rev: v6.2.5
hooks:
- id: rstcheck
files: "\\.rst$"
# Enable Sphinx directive/role support
additional_dependencies:
- rstcheck[sphinx]
# Ignore built documentation outputs
exclude: |
(?x)^(
docs/build/|
.*_build/|
.*build/html/
)$