|
1 | | -repos: |
| 1 | +ci: |
| 2 | + # autoupdate_schedule: quarterly |
| 3 | + autofix_prs: false |
2 | 4 |
|
3 | | -- repo: https://github.com/pre-commit/pre-commit-hooks |
| 5 | +repos: |
| 6 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
4 | 7 | rev: v3.4.0 |
5 | 8 | hooks: |
6 | | - - id: trailing-whitespace |
7 | | - - id: end-of-file-fixer |
8 | | - - id: check-docstring-first |
9 | | - - id: check-json |
10 | | - - id: check-yaml |
11 | | - - id: pretty-format-json |
12 | | - args: ["--autofix", "--indent=2", "--no-sort-keys"] |
13 | | - |
14 | | -- repo: https://github.com/ambv/black |
15 | | - rev: 20.8b1 |
16 | | - hooks: |
17 | | - - id: black |
18 | | - args: ["--line-length", "100", "--skip-string-normalization"] |
| 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: pretty-format-json |
| 15 | + args: ["--autofix", "--indent=2", "--no-sort-keys"] |
19 | 16 |
|
20 | | -- repo: https://gitlab.com/pycqa/flake8 |
21 | | - rev: 3.9.0 |
22 | | - hooks: |
23 | | - - id: flake8 |
24 | | - |
25 | | -- repo: https://github.com/asottile/seed-isort-config |
26 | | - rev: v2.2.0 |
27 | | - hooks: |
28 | | - - id: seed-isort-config |
29 | | -- repo: https://github.com/pre-commit/mirrors-isort |
30 | | - rev: v5.8.0 |
| 17 | + - repo: https://github.com/psf/black |
| 18 | + rev: 23.3.0 |
31 | 19 | hooks: |
32 | | - - id: isort |
| 20 | + - id: black |
33 | 21 |
|
34 | | -- repo: https://github.com/deathbeds/prenotebook |
35 | | - rev: f5bdb72a400f1a56fe88109936c83aa12cc349fa |
| 22 | + - repo: https://github.com/charliermarsh/ruff-pre-commit |
| 23 | + rev: "v0.0.260" |
36 | 24 | hooks: |
37 | | - - id: prenotebook |
| 25 | + - id: ruff |
| 26 | + args: ["--fix"] |
38 | 27 |
|
39 | 28 | # for R code |
40 | 29 | # - repo: https://github.com/lorenzwalthert/precommit |
|
0 commit comments