|
| 1 | +ci: |
| 2 | + autoupdate_commit_msg: "chore: update pre-commit hooks" |
| 3 | + autofix_commit_msg: "style: pre-commit fixes" |
| 4 | + |
1 | 5 | repos:
|
2 |
| -- repo: https://github.com/asottile/pyupgrade |
3 |
| - rev: v2.34.0 |
4 |
| - hooks: |
5 |
| - - id: pyupgrade |
6 |
| - args: [--py36-plus] |
| 6 | + - repo: https://github.com/asottile/pyupgrade |
| 7 | + rev: v2.34.0 |
| 8 | + hooks: |
| 9 | + - id: pyupgrade |
| 10 | + args: [--py36-plus] |
| 11 | + |
| 12 | + - repo: https://github.com/psf/black |
| 13 | + rev: 22.3.0 |
| 14 | + hooks: |
| 15 | + - id: black |
| 16 | + |
| 17 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 18 | + rev: v4.3.0 |
| 19 | + hooks: |
| 20 | + - id: check-added-large-files |
| 21 | + - id: check-case-conflict |
| 22 | + - id: check-merge-conflict |
| 23 | + - id: check-symlinks |
| 24 | + - id: check-yaml |
| 25 | + - id: debug-statements |
| 26 | + - id: end-of-file-fixer |
| 27 | + exclude: ^docs |
| 28 | + - id: mixed-line-ending |
| 29 | + - id: requirements-txt-fixer |
| 30 | + - id: trailing-whitespace |
7 | 31 |
|
8 |
| -- repo: https://github.com/psf/black |
9 |
| - rev: 22.3.0 |
10 |
| - hooks: |
11 |
| - - id: black |
| 32 | + - repo: https://github.com/PyCQA/isort |
| 33 | + rev: 5.10.1 |
| 34 | + hooks: |
| 35 | + - id: isort |
12 | 36 |
|
13 |
| -- repo: https://github.com/pre-commit/pre-commit-hooks |
14 |
| - rev: v4.3.0 |
15 |
| - hooks: |
16 |
| - - id: check-added-large-files |
17 |
| - - id: check-case-conflict |
18 |
| - - id: check-merge-conflict |
19 |
| - - id: check-symlinks |
20 |
| - - id: check-yaml |
21 |
| - - id: debug-statements |
22 |
| - - id: end-of-file-fixer |
23 |
| - exclude: ^docs |
24 |
| - - id: mixed-line-ending |
25 |
| - - id: requirements-txt-fixer |
26 |
| - - id: trailing-whitespace |
| 37 | + - repo: https://github.com/asottile/setup-cfg-fmt |
| 38 | + rev: v1.20.1 |
| 39 | + hooks: |
| 40 | + - id: setup-cfg-fmt |
27 | 41 |
|
28 |
| -- repo: https://github.com/PyCQA/isort |
29 |
| - rev: 5.10.1 |
30 |
| - hooks: |
31 |
| - - id: isort |
| 42 | + - repo: https://github.com/mgedmin/check-manifest |
| 43 | + rev: "0.48" |
| 44 | + hooks: |
| 45 | + - id: check-manifest |
| 46 | + stages: [manual] |
32 | 47 |
|
33 |
| -- repo: https://github.com/asottile/setup-cfg-fmt |
34 |
| - rev: v1.20.1 |
35 |
| - hooks: |
36 |
| - - id: setup-cfg-fmt |
| 48 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 49 | + rev: v0.961 |
| 50 | + hooks: |
| 51 | + - id: mypy |
| 52 | + files: src |
| 53 | + args: [--show-error-codes] |
| 54 | + additional_dependencies: |
| 55 | + - numpy==1.22.0 |
| 56 | + - packaging |
37 | 57 |
|
38 |
| -- repo: https://github.com/mgedmin/check-manifest |
39 |
| - rev: "0.48" |
40 |
| - hooks: |
41 |
| - - id: check-manifest |
42 |
| - stages: [manual] |
| 58 | + - repo: https://github.com/PyCQA/flake8 |
| 59 | + rev: 4.0.1 |
| 60 | + hooks: |
| 61 | + - id: flake8 |
| 62 | + additional_dependencies: |
| 63 | + - flake8-bugbear |
| 64 | + - flake8-docstrings |
| 65 | + - flake8-print |
43 | 66 |
|
44 |
| -- repo: https://github.com/pre-commit/mirrors-mypy |
45 |
| - rev: v0.961 |
46 |
| - hooks: |
47 |
| - - id: mypy |
48 |
| - files: src |
49 |
| - args: [--show-error-codes] |
50 |
| - additional_dependencies: |
51 |
| - - numpy==1.22.0 |
52 |
| - - packaging |
| 67 | + - repo: https://github.com/codespell-project/codespell |
| 68 | + rev: v2.1.0 |
| 69 | + hooks: |
| 70 | + - id: codespell |
| 71 | + args: ["-L", "hist,nd,circularly,ba"] |
| 72 | + exclude: ^(notebooks/xarray.ipynb|notebooks/BoostHistogramHandsOn.ipynb)$ |
53 | 73 |
|
54 |
| -- repo: https://github.com/PyCQA/flake8 |
55 |
| - rev: 4.0.1 |
56 |
| - hooks: |
57 |
| - - id: flake8 |
58 |
| - additional_dependencies: |
59 |
| - - flake8-bugbear |
60 |
| - - flake8-docstrings |
61 |
| - - flake8-print |
| 74 | + - repo: https://github.com/pre-commit/mirrors-prettier |
| 75 | + rev: "v2.7.1" |
| 76 | + hooks: |
| 77 | + - id: prettier |
| 78 | + types_or: [yaml, markdown, html, css, scss, javascript, json] |
| 79 | + exclude: assets/js/webapp\.js |
62 | 80 |
|
63 |
| -- repo: https://github.com/codespell-project/codespell |
64 |
| - rev: v2.1.0 |
65 |
| - hooks: |
66 |
| - - id: codespell |
67 |
| - args: ["-L", "hist,nd,circularly,ba"] |
68 |
| - exclude: ^(notebooks/xarray.ipynb|notebooks/BoostHistogramHandsOn.ipynb)$ |
| 81 | + - repo: https://github.com/asottile/blacken-docs |
| 82 | + rev: v1.12.1 |
| 83 | + hooks: |
| 84 | + - id: blacken-docs |
| 85 | + args: ["-E"] |
| 86 | + additional_dependencies: [black==22.3.0] |
69 | 87 |
|
70 |
| -- repo: https://github.com/pre-commit/pygrep-hooks |
71 |
| - rev: v1.9.0 |
72 |
| - hooks: |
73 |
| - - id: python-check-blanket-noqa |
74 |
| - - id: python-check-blanket-type-ignore |
75 |
| - exclude: ^src/vector/backends/_numba_object.py$ |
76 |
| - - id: python-no-log-warn |
77 |
| - - id: python-no-eval |
78 |
| - - id: python-use-type-annotations |
79 |
| - - id: rst-backticks |
80 |
| - - id: rst-directive-colons |
81 |
| - - id: rst-inline-touching-normal |
| 88 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 89 | + rev: v1.9.0 |
| 90 | + hooks: |
| 91 | + - id: python-check-blanket-noqa |
| 92 | + - id: python-check-blanket-type-ignore |
| 93 | + exclude: ^src/vector/backends/_numba_object.py$ |
| 94 | + - id: python-no-log-warn |
| 95 | + - id: python-no-eval |
| 96 | + - id: python-use-type-annotations |
| 97 | + - id: rst-backticks |
| 98 | + - id: rst-directive-colons |
| 99 | + - id: rst-inline-touching-normal |
0 commit comments