|
1 | 1 | default_language_version:
|
2 |
| - python: python3 |
| 2 | + python: python3 |
3 | 3 | ci:
|
4 |
| - autofix_commit_msg: | |
5 |
| - [pre-commit.ci] auto fixes from pre-commit hooks |
6 |
| - autofix_prs: true |
7 |
| - autoupdate_branch: 'pre-commit-autoupdate' |
8 |
| - autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' |
9 |
| - autoupdate_schedule: monthly |
10 |
| - skip: [no-commit-to-branch] |
11 |
| - submodules: false |
| 4 | + autofix_commit_msg: | |
| 5 | + [pre-commit.ci] auto fixes from pre-commit hooks |
| 6 | + autofix_prs: true |
| 7 | + autoupdate_branch: "pre-commit-autoupdate" |
| 8 | + autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate" |
| 9 | + autoupdate_schedule: monthly |
| 10 | + skip: [no-commit-to-branch] |
| 11 | + submodules: false |
12 | 12 | repos:
|
13 | 13 | - repo: https://github.com/pre-commit/pre-commit-hooks
|
14 | 14 | rev: v4.6.0
|
@@ -44,3 +44,28 @@ repos:
|
44 | 44 | name: Prevent Commit to Main Branch
|
45 | 45 | args: ["--branch", "main"]
|
46 | 46 | stages: [pre-commit]
|
| 47 | + - repo: https://github.com/codespell-project/codespell |
| 48 | + rev: v2.3.0 |
| 49 | + hooks: |
| 50 | + - id: codespell |
| 51 | + args: |
| 52 | + - "--ignore-words=.codespell/ignore_words.txt" |
| 53 | + - "--ignore-regex" |
| 54 | + - "(?i)\\b(discus|conect|te|nd|bu)\\b" |
| 55 | + exclude: .*/\.codespell/.* |
| 56 | + additional_dependencies: |
| 57 | + - tomli |
| 58 | + # prettier - multi formatter for .json, .yml, and .md files |
| 59 | + - repo: https://github.com/pre-commit/mirrors-prettier |
| 60 | + rev: f12edd9c7be1c20cfa42420fd0e6df71e42b51ea # frozen: v4.0.0-alpha.8 |
| 61 | + hooks: |
| 62 | + - id: prettier |
| 63 | + additional_dependencies: |
| 64 | + - "prettier@^3.2.4" |
| 65 | + # docformatter - PEP 257 compliant docstring formatter |
| 66 | + - repo: https://github.com/s-weigand/docformatter |
| 67 | + rev: 5757c5190d95e5449f102ace83df92e7d3b06c6c |
| 68 | + hooks: |
| 69 | + - id: docformatter |
| 70 | + additional_dependencies: [tomli] |
| 71 | + args: [--in-place, --config, ./pyproject.toml] |
0 commit comments