|
1 | 1 | ci:
|
2 |
| - autoupdate_schedule: quarterly |
| 2 | + # autoupdate_schedule: quarterly |
| 3 | + autofix_prs: false |
3 | 4 |
|
4 | 5 | repos:
|
5 |
| - |
6 |
| -- repo: https://github.com/pre-commit/pre-commit-hooks |
7 |
| - rev: v4.3.0 |
| 6 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 7 | + rev: v4.5.0 |
8 | 8 | hooks:
|
9 |
| - - id: trailing-whitespace |
10 |
| - - id: end-of-file-fixer |
11 |
| - - id: check-docstring-first |
12 |
| - - id: mixed-line-ending |
13 |
| - |
14 |
| - |
15 |
| -- repo: https://github.com/psf/black |
16 |
| - rev: 22.10.0 |
| 9 | + - id: trailing-whitespace |
| 10 | + - id: end-of-file-fixer |
| 11 | + - id: check-docstring-first |
| 12 | + - id: check-json |
| 13 | + - id: check-yaml |
| 14 | + - id: debug-statements |
| 15 | + - id: mixed-line-ending |
| 16 | + |
| 17 | + - repo: https://github.com/asottile/pyupgrade |
| 18 | + rev: v3.15.0 |
17 | 19 | hooks:
|
18 |
| - - id: black |
19 |
| - - id: black-jupyter |
| 20 | + - id: pyupgrade |
| 21 | + args: |
| 22 | + - "--py38-plus" |
20 | 23 |
|
| 24 | + - repo: https://github.com/psf/black |
| 25 | + rev: 23.12.1 |
| 26 | + hooks: |
| 27 | + - id: black |
21 | 28 |
|
22 |
| -- repo: https://github.com/PyCQA/flake8 |
23 |
| - rev: 5.0.4 |
| 29 | + - repo: https://github.com/keewis/blackdoc |
| 30 | + rev: v0.3.9 |
24 | 31 | hooks:
|
25 |
| - - id: flake8 |
| 32 | + - id: blackdoc |
26 | 33 |
|
27 |
| -- repo: https://github.com/PyCQA/isort |
28 |
| - rev: 5.10.1 |
| 34 | + - repo: https://github.com/charliermarsh/ruff-pre-commit |
| 35 | + rev: "v0.1.11" |
29 | 36 | hooks:
|
30 |
| - - id: isort |
| 37 | + - id: ruff |
| 38 | + args: ["--fix"] |
31 | 39 |
|
32 |
| -- repo: https://github.com/pre-commit/mirrors-prettier |
33 |
| - rev: 'v3.0.0-alpha.4' |
| 40 | + - repo: https://github.com/pre-commit/mirrors-prettier |
| 41 | + rev: v4.0.0-alpha.8 |
34 | 42 | hooks:
|
35 | 43 | - id: prettier
|
36 |
| - name: prettier-markdown |
37 |
| - entry: prettier --write --parser mdx |
38 |
| - files: "\\.(\ |
39 |
| - |md|markdown|mdown|mkdn\ |
40 |
| - |mdx\ |
41 |
| - )$" |
| 44 | + |
| 45 | + - repo: https://github.com/nbQA-dev/nbQA |
| 46 | + rev: 1.7.1 |
| 47 | + hooks: |
| 48 | + - id: nbqa-ruff |
| 49 | + args: ["--fix"] |
| 50 | + - id: nbqa-isort |
| 51 | + args: ["--profile=black"] |
| 52 | + additional_dependencies: [isort==5.6.4] |
| 53 | + - id: nbqa-black |
| 54 | + - id: nbqa-pyupgrade |
| 55 | + args: ["--py37-plus"] |
0 commit comments