|
1 |
| -ci: |
2 |
| - autoupdate_schedule: monthly |
3 |
| - autoupdate_commit_msg: "chore: update pre-commit hooks" |
4 |
| - |
5 | 1 | repos:
|
6 |
| - - repo: https://github.com/pre-commit/pre-commit-hooks |
7 |
| - rev: v4.5.0 |
| 2 | + - repo: "https://github.com/psf/black" |
| 3 | + rev: "22.3.0" |
8 | 4 | 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 |
| - - id: end-of-file-fixer |
21 |
| - - id: trailing-whitespace |
| 5 | + - id: black |
22 | 6 |
|
23 |
| - - repo: https://github.com/python-jsonschema/check-jsonschema |
24 |
| - rev: 0.27.1 |
| 7 | + - repo: "https://github.com/kynan/nbstripout" |
| 8 | + rev: "0.5.0" |
25 | 9 | hooks:
|
26 |
| - - id: check-github-workflows |
| 10 | + - id: nbstripout |
27 | 11 |
|
28 |
| - - repo: https://github.com/executablebooks/mdformat |
29 |
| - rev: 0.7.17 |
| 12 | + - repo: "https://github.com/pre-commit/mirrors-prettier" |
| 13 | + rev: "v2.7.1" |
30 | 14 | hooks:
|
31 |
| - - id: mdformat |
| 15 | + - id: prettier |
| 16 | + exclude: tests\/test_.+\. |
32 | 17 |
|
33 |
| - - repo: https://github.com/pre-commit/mirrors-prettier |
34 |
| - rev: "v3.0.3" |
| 18 | + - repo: https://github.com/charliermarsh/ruff-pre-commit |
| 19 | + rev: "v0.0.215" |
35 | 20 | hooks:
|
36 |
| - - id: prettier |
37 |
| - types_or: [yaml, html, json] |
| 21 | + - id: ruff |
38 | 22 |
|
39 |
| - - repo: https://github.com/codespell-project/codespell |
40 |
| - rev: "v2.2.6" |
| 23 | + - repo: https://github.com/PyCQA/doc8 |
| 24 | + rev: "v1.1.1" |
41 | 25 | hooks:
|
42 |
| - - id: codespell |
43 |
| - args: ["-L", "sur,nd"] |
| 26 | + - id: doc8 |
44 | 27 |
|
45 |
| - - repo: https://github.com/pre-commit/pygrep-hooks |
46 |
| - rev: "v1.10.0" |
| 28 | + - repo: https://github.com/codespell-project/codespell |
| 29 | + rev: v2.2.4 |
47 | 30 | hooks:
|
48 |
| - - id: rst-backticks |
49 |
| - - id: rst-directive-colons |
50 |
| - - id: rst-inline-touching-normal |
| 31 | + - id: codespell |
| 32 | + stages: [commit] |
| 33 | + additional_dependencies: |
| 34 | + - tomli |
51 | 35 |
|
52 |
| - - repo: https://github.com/astral-sh/ruff-pre-commit |
53 |
| - rev: v0.1.5 |
| 36 | + # Prevent committing inline conflict markers |
| 37 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 38 | + rev: v4.3.0 |
54 | 39 | hooks:
|
55 |
| - - id: ruff |
56 |
| - types_or: [python, jupyter] |
57 |
| - args: ["--fix", "--show-fixes"] |
58 |
| - - id: ruff-format |
59 |
| - types_or: [python, jupyter] |
| 40 | + - id: check-merge-conflict |
| 41 | + args: [--assume-in-merge] |
0 commit comments