Debian Codegraph @

.pre-commit-config.yaml

raw
1 ci:
2 autoupdate_commit_msg: "chore: update pre-commit hooks"
3 autoupdate_schedule: weekly
4
5 repos:
6 - repo: https://github.com/pre-commit/pre-commit-hooks
7 rev: v6.0.0
8 hooks:
9 - id: check-case-conflict
10 - id: check-ast
11 - id: check-docstring-first
12 - id: check-executables-have-shebangs
13 - id: check-added-large-files
14 - id: check-case-conflict
15 - id: check-merge-conflict
16 - id: check-json
17 - id: check-toml
18 - id: check-yaml
19 - id: debug-statements
20 exclude: ipykernel/kernelapp.py
21 - id: end-of-file-fixer
22 - id: trailing-whitespace
23
24 - repo: https://github.com/python-jsonschema/check-jsonschema
25 rev: 0.36.1
26 hooks:
27 - id: check-github-workflows
28
29 - repo: https://github.com/hukkin/mdformat
30 rev: 1.0.0
31 hooks:
32 - id: mdformat
33 additional_dependencies: [mdformat-footnote]
34
35 - repo: https://github.com/pre-commit/mirrors-prettier
36 rev: "v4.0.0-alpha.8"
37 hooks:
38 - id: prettier
39 types_or: [yaml, html, json]
40
41 - repo: https://github.com/pre-commit/mirrors-mypy
42 rev: "v1.19.1"
43 hooks:
44 - id: mypy
45 files: ipykernel
46 stages: [manual]
47 args: ["--install-types", "--non-interactive"]
48 additional_dependencies:
49 [
50 "traitlets>=5.13",
51 "ipython>=8.16.1",
52 "jupyter_client>=8.5",
53 "appnope",
54 ]
55
56 - repo: https://github.com/adamchainz/blacken-docs
57 rev: "1.20.0"
58 hooks:
59 - id: blacken-docs
60 additional_dependencies: [black==23.7.0]
61
62 - repo: https://github.com/codespell-project/codespell
63 rev: "v2.4.1"
64 hooks:
65 - id: codespell
66 args: ["-L", "sur,nd"]
67
68 - repo: https://github.com/pre-commit/pygrep-hooks
69 rev: "v1.10.0"
70 hooks:
71 - id: rst-backticks
72 - id: rst-directive-colons
73 - id: rst-inline-touching-normal
74
75 - repo: https://github.com/astral-sh/ruff-pre-commit
76 rev: v0.14.14
77 hooks:
78 - id: ruff-check
79 types_or: [python, jupyter]
80 args: ["--fix", "--show-fixes"]
81 - id: ruff-format
82 types_or: [python, jupyter]
83
84 - repo: https://github.com/scientific-python/cookie
85 rev: "2025.10.20"
86 hooks:
87 - id: sp-repo-review
88 additional_dependencies: ["repo-review[cli]"]