|
| 1 | +ci: |
| 2 | + # autoupdate_schedule: quarterly |
| 3 | + autofix_prs: false |
| 4 | + |
1 | 5 | repos:
|
2 | 6 | - repo: https://github.com/pre-commit/pre-commit-hooks
|
3 |
| - rev: v3.4.0 |
| 7 | + rev: v4.4.0 |
4 | 8 | hooks:
|
5 | 9 | - id: trailing-whitespace
|
6 | 10 | - id: end-of-file-fixer
|
7 | 11 | - id: check-docstring-first
|
8 | 12 | - id: check-json
|
9 | 13 | - id: check-yaml
|
10 |
| - - id: pretty-format-json |
11 |
| - args: ['--autofix', '--indent=2', '--no-sort-keys'] |
| 14 | + - id: debug-statements |
| 15 | + - id: mixed-line-ending |
12 | 16 |
|
13 |
| - - repo: https://github.com/ambv/black |
14 |
| - rev: 20.8b1 |
| 17 | + - repo: https://github.com/asottile/pyupgrade |
| 18 | + rev: v3.3.1 |
15 | 19 | hooks:
|
16 |
| - - id: black |
17 |
| - args: ['--line-length', '100'] |
| 20 | + - id: pyupgrade |
| 21 | + args: |
| 22 | + - '--py38-plus' |
18 | 23 |
|
19 |
| - - repo: https://gitlab.com/pycqa/flake8 |
20 |
| - rev: 3.8.4 |
| 24 | + - repo: https://github.com/psf/black |
| 25 | + rev: 23.3.0 |
21 | 26 | hooks:
|
22 |
| - - id: flake8 |
| 27 | + - id: black |
23 | 28 |
|
24 |
| - - repo: https://github.com/asottile/seed-isort-config |
25 |
| - rev: v2.2.0 |
26 |
| - hooks: |
27 |
| - - id: seed-isort-config |
28 |
| - - repo: https://github.com/pre-commit/mirrors-isort |
29 |
| - rev: v5.6.4 |
| 29 | + - repo: https://github.com/keewis/blackdoc |
| 30 | + rev: v0.3.8 |
30 | 31 | hooks:
|
31 |
| - - id: isort |
| 32 | + - id: blackdoc |
32 | 33 |
|
33 |
| - - repo: https://github.com/deathbeds/prenotebook |
34 |
| - rev: f5bdb72a400f1a56fe88109936c83aa12cc349fa |
| 34 | + - repo: https://github.com/charliermarsh/ruff-pre-commit |
| 35 | + rev: 'v0.0.260' |
35 | 36 | hooks:
|
36 |
| - - id: prenotebook |
| 37 | + - id: ruff |
| 38 | + args: ['--fix'] |
37 | 39 |
|
38 | 40 | - repo: https://github.com/pre-commit/mirrors-prettier
|
39 |
| - rev: v2.2.1 |
| 41 | + rev: v3.0.0-alpha.6 |
40 | 42 | hooks:
|
41 | 43 | - id: prettier
|
42 |
| - files: "\\.(\ |
43 |
| - css|less|scss\ |
44 |
| - |graphql|gql\ |
45 |
| - |html\ |
46 |
| - |js|jsx\ |
47 |
| - |json\ |
48 |
| - |ts|tsx\ |
49 |
| - |vue\ |
50 |
| - |yaml|yml\ |
51 |
| - )$" |
52 | 44 |
|
53 |
| - - repo: https://github.com/pre-commit/mirrors-prettier |
54 |
| - rev: v2.2.1 |
55 |
| - hooks: |
56 |
| - - id: prettier |
57 |
| - name: prettier-markdown |
58 |
| - entry: prettier --write --parser mdx |
59 |
| - files: "\\.(\ |
60 |
| - |md|markdown|mdown|mkdn\ |
61 |
| - |mdx\ |
62 |
| - )$" |
| 45 | + - repo: https://github.com/nbQA-dev/nbQA |
| 46 | + rev: 1.7.0 |
| 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