|
1 | 1 | ci:
|
2 |
| - autoupdate_schedule: 'monthly' |
| 2 | + autoupdate_schedule: 'monthly' |
3 | 3 |
|
4 | 4 | repos:
|
5 |
| -- repo: https://github.com/astral-sh/ruff-pre-commit |
6 |
| - # Ruff version. |
7 |
| - rev: v0.8.1 |
8 |
| - hooks: |
9 |
| - # Run the linter. |
10 |
| - - id: ruff |
11 |
| - types_or: [ python, pyi, jupyter ] |
12 |
| - args: [ --fix ] |
13 |
| - # Run the formatter. |
14 |
| - - id: ruff-format |
15 |
| - types_or: [ python, pyi, jupyter ] |
16 |
| -- repo: https://github.com/asottile/pyupgrade |
| 5 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 6 | + rev: v0.8.1 |
| 7 | + hooks: |
| 8 | + # Run the linter. |
| 9 | + - id: ruff |
| 10 | + types_or: [ python, pyi, jupyter ] |
| 11 | + args: [ --fix ] |
| 12 | + # Run the formatter. |
| 13 | + - id: ruff-format |
| 14 | + types_or: [ python, pyi, jupyter ] |
| 15 | + |
| 16 | + - repo: https://github.com/asottile/pyupgrade |
17 | 17 | rev: v3.19.0
|
18 | 18 | hooks:
|
19 |
| - - id: pyupgrade |
20 |
| - args: [--py311-plus] |
21 |
| -- repo: https://github.com/pre-commit/pre-commit-hooks |
| 19 | + - id: pyupgrade |
| 20 | + args: [ --py311-plus ] |
| 21 | + |
| 22 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
22 | 23 | rev: v5.0.0 # Use the ref you want to point at
|
23 | 24 | hooks:
|
24 |
| - - id: trailing-whitespace |
25 |
| - - id: check-toml |
26 |
| - - id: check-yaml |
27 |
| -- repo: https://github.com/codespell-project/codespell |
28 |
| - rev: v2.3.0 |
29 |
| - hooks: |
30 |
| - - id: codespell |
31 |
| - args: [ |
32 |
| - "--ignore-words", |
33 |
| - ".codespellignore", |
34 |
| - ] |
35 |
| - exclude: .vale/styles/Microsoft/Avoid.yml |
| 25 | + - id: trailing-whitespace |
| 26 | + - id: check-toml |
| 27 | + - id: check-yaml |
| 28 | + |
| 29 | + - repo: https://github.com/codespell-project/codespell |
| 30 | + rev: v2.3.0 |
| 31 | + hooks: |
| 32 | + - id: codespell |
| 33 | + args: |
| 34 | + - "--ignore-words" |
| 35 | + - ".codespellignore" |
| 36 | + exclude: .vale/styles/Microsoft/Avoid.yml |
| 37 | + |
| 38 | + - repo: https://github.com/errata-ai/vale |
| 39 | + rev: v3.9.1 # Use the version of Vale you want |
| 40 | + hooks: |
| 41 | + - id: vale |
| 42 | + name: Vale |
| 43 | + entry: vale |
| 44 | + language: docker |
| 45 | + types: [file] |
| 46 | + files: \.(md|txt|rst)$ # Adjust file extensions as needed |
| 47 | + |
0 commit comments