|
1 | | -# See https://pre-commit.com for more information |
2 | | -# See https://pre-commit.com/hooks.html for more hooks |
3 | | ---- |
4 | 1 | minimum_pre_commit_version: 3.3.0 |
5 | | -default_install_hook_types: [pre-commit,commit-msg] |
| 2 | +default_install_hook_types: [pre-commit, commit-msg] |
| 3 | +default_stages: [pre-commit] |
| 4 | + |
| 5 | +ci: |
| 6 | + autofix_prs: false |
| 7 | + autoupdate_commit_msg: 'ci: Bump pre-commit hooks' |
| 8 | + autoupdate_schedule: quarterly |
6 | 9 |
|
7 | 10 | repos: |
8 | 11 | - repo: https://github.com/pre-commit/pre-commit-hooks |
9 | | - rev: v4.3.0 |
| 12 | + rev: v5.0.0 |
10 | 13 | hooks: |
11 | 14 | - id: trailing-whitespace |
12 | 15 | - id: end-of-file-fixer |
13 | 16 | - id: check-executables-have-shebangs |
14 | 17 | - id: mixed-line-ending |
15 | | - args: ['-f=lf'] |
16 | | - - id: double-quote-string-fixer |
17 | | - |
18 | | - - repo: https://github.com/pycqa/flake8 |
19 | | - rev: 6.0.0 |
20 | | - hooks: |
21 | | - - id: flake8 |
22 | | - args: ['--config=.flake8'] |
| 18 | + args: [-f=lf] |
23 | 19 |
|
24 | | - - repo: https://github.com/pycqa/isort |
25 | | - rev: 5.11.5 |
| 20 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 21 | + rev: v0.12.2 |
26 | 22 | hooks: |
27 | | - - id: isort |
28 | | - name: isort (python) |
| 23 | + - id: ruff |
| 24 | + args: [--fix, --exit-non-zero-on-fix] |
| 25 | + - id: ruff-format |
29 | 26 |
|
30 | 27 | - repo: https://github.com/pre-commit/mirrors-mypy |
31 | | - rev: 'v1.1.1' # Use the sha / tag you want to point at |
| 28 | + rev: v1.16.1 |
32 | 29 | hooks: |
33 | | - - id: mypy |
| 30 | + - id: mypy |
34 | 31 | additional_dependencies: [] |
35 | 32 |
|
36 | 33 | - repo: https://github.com/espressif/conventional-precommit-linter |
37 | | - rev: v1.2.0 |
| 34 | + rev: v1.10.0 |
38 | 35 | hooks: |
39 | 36 | - id: conventional-precommit-linter |
40 | 37 | stages: [commit-msg] |
| 38 | + |
| 39 | + - repo: https://github.com/codespell-project/codespell |
| 40 | + rev: v2.4.1 |
| 41 | + hooks: |
| 42 | + - id: codespell |
| 43 | + additional_dependencies: |
| 44 | + - tomli |
| 45 | + |
| 46 | + - repo: https://github.com/lyz-code/yamlfix/ |
| 47 | + rev: 1.17.0 |
| 48 | + hooks: |
| 49 | + - id: yamlfix |
0 commit comments