|
1 | | -# See https://pre-commit.com for more information |
2 | | -# See https://pre-commit.com/hooks.html for more hooks |
| 1 | +--- |
| 2 | +default_language_version: |
| 3 | + node: system |
| 4 | + |
3 | 5 | repos: |
4 | 6 | - repo: https://github.com/pre-commit/pre-commit-hooks |
5 | | - rev: v3.2.0 |
| 7 | + rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # 4.6.0 |
6 | 8 | hooks: |
7 | 9 | - id: trailing-whitespace |
8 | 10 | - id: end-of-file-fixer |
9 | | - - id: check-yaml |
10 | | - exclude: examples/ |
| 11 | + - id: detect-aws-credentials |
| 12 | + args: ["--allow-missing-credentials"] |
| 13 | + - id: detect-private-key |
11 | 14 | - id: check-added-large-files |
12 | | - - repo: https://github.com/Yelp/detect-secrets |
13 | | - rev: v1.4.0 |
| 15 | + - id: check-symlinks |
| 16 | + |
| 17 | + - repo: https://github.com/adrienverge/yamllint |
| 18 | + rev: 81e9f98ffd059efe8aa9c1b1a42e5cce61b640c6 # 1.35.1 |
14 | 19 | hooks: |
15 | | - - id: detect-secrets |
16 | | - exclude: examples/ |
17 | | - - repo: https://github.com/pre-commit/mirrors-autopep8 |
18 | | - rev: v2.0.1 |
| 20 | + - id: yamllint |
| 21 | + |
| 22 | + - repo: https://github.com/igorshubovych/markdownlint-cli |
| 23 | + rev: f295829140d25717bc79368d3f966fc1f67a824f # 0.41.0 |
| 24 | + hooks: |
| 25 | + - id: markdownlint |
| 26 | + |
| 27 | + - repo: https://github.com/koalaman/shellcheck-precommit |
| 28 | + rev: 2491238703a5d3415bb2b7ff11388bf775372f29 # 0.10.0 |
| 29 | + hooks: |
| 30 | + - id: shellcheck |
| 31 | + args: ["--severity=info"] |
| 32 | + |
| 33 | + - repo: https://github.com/rhysd/actionlint |
| 34 | + rev: 62dc61a45fc95efe8c800af7a557ab0b9165d63b # 1.7.1 |
19 | 35 | hooks: |
20 | | - - id: autopep8 |
21 | | - entry: autopep8 |
| 36 | + - id: actionlint |
| 37 | + |
22 | 38 | - repo: https://github.com/astral-sh/ruff-pre-commit |
23 | | - # Ruff version. |
24 | | - rev: v0.0.275 |
| 39 | + rev: f1ebc5730d98440041cc43e4d69829ad598ae1e7 # 0.6.3 |
25 | 40 | hooks: |
26 | 41 | - id: ruff |
| 42 | + args: [--fix] |
| 43 | + - id: ruff-format |
| 44 | + |
27 | 45 | - repo: https://github.com/pre-commit/mirrors-mypy |
28 | | - rev: 'v1.4.0' |
| 46 | + rev: d4911cfb7f1010759fde68da196036feeb25b99d # 1.11.2 |
29 | 47 | hooks: |
30 | 48 | - id: mypy |
31 | 49 | args: ['--install-types', '--non-interactive'] |
32 | 50 | additional_dependencies: |
33 | 51 | - "Jinja2>=3.1.2" |
34 | 52 | - "PyYAML>=6.0" |
35 | 53 | exclude: examples/ |
| 54 | + |
36 | 55 | - repo: local |
37 | 56 | hooks: |
38 | 57 | - id: unittest |
|
0 commit comments