|
| 1 | +ci: |
| 2 | + # autoupdate_schedule: quarterly |
| 3 | + autofix_prs: false |
| 4 | + |
1 | 5 | repos: |
| 6 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 7 | + rev: v4.4.0 |
| 8 | + hooks: |
| 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.3.1 |
| 19 | + hooks: |
| 20 | + - id: pyupgrade |
| 21 | + args: |
| 22 | + - "--py38-plus" |
| 23 | + |
| 24 | + - repo: https://github.com/psf/black |
| 25 | + rev: 23.3.0 |
| 26 | + hooks: |
| 27 | + - id: black |
| 28 | + |
| 29 | + - repo: https://github.com/keewis/blackdoc |
| 30 | + rev: v0.3.8 |
| 31 | + hooks: |
| 32 | + - id: blackdoc |
| 33 | + |
| 34 | + - repo: https://github.com/charliermarsh/ruff-pre-commit |
| 35 | + rev: "v0.0.260" |
| 36 | + hooks: |
| 37 | + - id: ruff |
| 38 | + args: ["--fix"] |
| 39 | + |
| 40 | + - repo: https://github.com/pre-commit/mirrors-prettier |
| 41 | + rev: v3.0.0-alpha.6 |
| 42 | + hooks: |
| 43 | + - id: prettier |
2 | 44 |
|
3 | | -- repo: https://github.com/pre-commit/pre-commit-hooks |
4 | | - rev: v4.2.0 |
| 45 | + - repo: https://github.com/kynan/nbstripout |
| 46 | + rev: 0.6.1 |
5 | 47 | 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"] |
| 48 | + - id: nbstripout |
| 49 | + args: |
| 50 | + [ |
| 51 | + "--extra-keys", |
| 52 | + "metadata.celltoolbar metadata.kernelspec", |
| 53 | + "metadata.language_info.codemirror_mode.version", |
| 54 | + "metadata.language_info.pygments_lexer", |
| 55 | + "metadata.language_info.version", |
| 56 | + "metadata.toc", |
| 57 | + "metadata.notify_time", |
| 58 | + "metadata.varInspector", |
| 59 | + "cell.metadata.heading_collapsed", |
| 60 | + "cell.metadata.hidden", |
| 61 | + "cell.metadata.code_folding", |
| 62 | + "cell.metadata.tags", |
| 63 | + "cell.metadata.init_cell", |
| 64 | + ] |
13 | 65 |
|
14 | | -- repo: https://github.com/lorenzwalthert/precommit |
15 | | - rev: v0.3.0 |
| 66 | + - repo: https://github.com/nbQA-dev/nbQA |
| 67 | + rev: 1.7.0 |
16 | 68 | hooks: |
17 | | - - id: style-files |
18 | | - args: [--style_pkg=styler, --style_fun=tidyverse_style] |
| 69 | + - id: nbqa-ruff |
| 70 | + args: ["--fix"] |
| 71 | + - id: nbqa-isort |
| 72 | + args: ["--profile=black"] |
| 73 | + additional_dependencies: [isort==5.6.4] |
| 74 | + - id: nbqa-black |
| 75 | + - id: nbqa-pyupgrade |
| 76 | + args: ["--py37-plus"] |
0 commit comments