|
| 1 | +ci: |
| 2 | + autoupdate_schedule: monthly |
| 3 | + autoupdate_commit_msg: "chore: update pre-commit hooks" |
| 4 | + |
1 | 5 | repos:
|
2 | 6 | - repo: https://github.com/pre-commit/pre-commit-hooks
|
3 |
| - rev: v4.4.0 |
| 7 | + rev: v4.5.0 |
4 | 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 |
5 | 20 | - id: end-of-file-fixer
|
| 21 | + - id: trailing-whitespace |
6 | 22 |
|
7 | 23 | - repo: https://github.com/python-jsonschema/check-jsonschema
|
8 | 24 | rev: 0.27.3
|
9 | 25 | hooks:
|
10 | 26 | - id: check-github-workflows
|
| 27 | + |
| 28 | + - repo: https://github.com/executablebooks/mdformat |
| 29 | + rev: 0.7.17 |
| 30 | + hooks: |
| 31 | + - id: mdformat |
| 32 | + additional_dependencies: |
| 33 | + [mdformat-gfm, mdformat-frontmatter, 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/codespell-project/codespell |
| 42 | + rev: "v2.2.6" |
| 43 | + hooks: |
| 44 | + - id: codespell |
| 45 | + args: ["-L", "sur,nd"] |
| 46 | + |
| 47 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 48 | + rev: "v1.10.0" |
| 49 | + hooks: |
| 50 | + - id: rst-backticks |
| 51 | + - id: rst-directive-colons |
| 52 | + - id: rst-inline-touching-normal |
| 53 | + |
| 54 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 55 | + rev: "v1.8.0" |
| 56 | + hooks: |
| 57 | + - id: mypy |
| 58 | + files: kernel_gateway |
| 59 | + stages: [manual] |
| 60 | + additional_dependencies: [] |
| 61 | + |
| 62 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 63 | + rev: v0.1.9 |
| 64 | + hooks: |
| 65 | + - id: ruff |
| 66 | + types_or: [python, jupyter] |
| 67 | + args: ["--fix", "--show-fixes"] |
| 68 | + exclude: ^kernel_gateway/tests/resources/ |
| 69 | + - id: ruff-format |
| 70 | + types_or: [python, jupyter] |
| 71 | + exclude: ^kernel_gateway/tests/resources/ |
| 72 | + |
| 73 | + - repo: https://github.com/scientific-python/cookie |
| 74 | + rev: "2023.12.21" |
| 75 | + hooks: |
| 76 | + - id: sp-repo-review |
| 77 | + additional_dependencies: ["repo-review[cli]"] |
0 commit comments