-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (64 loc) · 1.93 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
70 lines (64 loc) · 1.93 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: ^python/quantum-pecos/docs/reference/_autosummary/
- id: end-of-file-fixer
exclude: |
(?x)^(
python/quantum-pecos/docs/reference/_autosummary/|
.*\.rs$|
crates/.*/LICENSE$|
python/.*/LICENSE$|
python/quantum-pecos/NOTICE$|
python/quantum-pecos/README\.md$
)
- id: check-toml
- id: check-yaml
args: [--unsafe]
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: detect-private-key
# Python-specific
- id: check-ast
- id: check-docstring-first
- id: debug-statements
- repo: https://github.com/crate-ci/typos
rev: v1.44.0
hooks:
- id: typos
args: ["--force-exclude"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.7
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black
rev: 26.3.1
hooks:
- id: black
- repo: https://github.com/keewis/blackdoc
rev: v0.4.6
hooks:
- id: blackdoc
args: [--line-length=120]
additional_dependencies:
- black==25.9.0
- repo: local
hooks:
- id: dependency-integrity-check
name: dependency integrity check
entry: scripts/dependency-integrity-check.sh
language: system
pass_filenames: false
always_run: true
# Ruff's TID251 ban covers .py and .ipynb but not Markdown, and the doctests
# generated from docs/ are not committed, so docs need their own check.
- id: check-docs-no-numpy
name: no numpy in documentation snippets
entry: scripts/check-docs-no-numpy.sh
language: system
pass_filenames: false
files: ^docs/.*\.md$