|
3 | 3 | default_language_version:
|
4 | 4 | python: python3.11
|
5 | 5 | repos:
|
6 |
| - - repo: https://github.com/pre-commit/pre-commit-hooks |
| 6 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
7 | 7 | rev: v5.0.0
|
8 | 8 | hooks:
|
9 |
| - - id: trailing-whitespace |
10 |
| - - id: end-of-file-fixer |
| 9 | + - id: trailing-whitespace |
| 10 | + - id: end-of-file-fixer |
11 | 11 | exclude: |
|
12 | 12 | (?x)^(
|
13 | 13 | .*\.svg
|
14 | 14 | )$
|
15 |
| - - id: check-yaml |
16 |
| - - id: check-added-large-files |
17 |
| - - id: detect-private-key |
18 |
| - - repo: https://github.com/python-poetry/poetry |
19 |
| - rev: "1.8.0" |
| 15 | + - id: check-yaml |
| 16 | + - id: check-added-large-files |
| 17 | + - id: detect-private-key |
| 18 | +- repo: https://github.com/python-poetry/poetry |
| 19 | + rev: "2.0.1" |
20 | 20 | hooks:
|
21 |
| - - id: poetry-check |
22 |
| - - repo: https://github.com/tox-dev/pyproject-fmt |
23 |
| - rev: "2.4.3" |
| 21 | + - id: poetry-check |
| 22 | +- repo: https://github.com/tox-dev/pyproject-fmt |
| 23 | + rev: "v2.5.0" |
24 | 24 | hooks:
|
25 |
| - - id: pyproject-fmt |
26 |
| - - repo: https://github.com/codespell-project/codespell |
27 |
| - rev: v2.3.0 |
| 25 | + - id: pyproject-fmt |
| 26 | +- repo: https://github.com/codespell-project/codespell |
| 27 | + rev: v2.4.1 |
28 | 28 | hooks:
|
29 |
| - - id: codespell |
| 29 | + - id: codespell |
30 | 30 | exclude: |
|
31 | 31 | (?x)^(
|
32 | 32 | .*\.lock |
|
33 | 33 | .*\.json |
|
34 | 34 | .*\.ipynb |
|
35 | 35 | .*\.cppipe
|
36 | 36 | )$
|
37 |
| - - repo: https://github.com/executablebooks/mdformat |
| 37 | +- repo: https://github.com/executablebooks/mdformat |
38 | 38 | rev: 0.7.18
|
39 | 39 | hooks:
|
40 |
| - - id: mdformat |
| 40 | + - id: mdformat |
41 | 41 | additional_dependencies:
|
42 |
| - - mdformat-gfm |
43 |
| - - repo: https://github.com/citation-file-format/cffconvert |
| 42 | + - mdformat-gfm |
| 43 | +- repo: https://github.com/citation-file-format/cffconvert |
44 | 44 | rev: b6045d78aac9e02b039703b030588d54d53262ac
|
45 | 45 | hooks:
|
46 |
| - - id: validate-cff |
47 |
| - - repo: https://github.com/adrienverge/yamllint |
| 46 | + - id: validate-cff |
| 47 | +- repo: https://github.com/adrienverge/yamllint |
48 | 48 | rev: v1.35.1
|
49 | 49 | hooks:
|
50 |
| - - id: yamllint |
51 |
| - - repo: https://github.com/rhysd/actionlint |
52 |
| - rev: v1.7.3 |
| 50 | + - id: yamllint |
| 51 | + exclude: pre-commit-config.yaml |
| 52 | +- repo: https://github.com/rhysd/actionlint |
| 53 | + rev: v1.7.7 |
53 | 54 | hooks:
|
54 |
| - - id: actionlint |
55 |
| - - repo: https://github.com/astral-sh/ruff-pre-commit |
56 |
| - rev: "v0.7.0" |
| 55 | + - id: actionlint |
| 56 | +- repo: https://github.com/astral-sh/ruff-pre-commit |
| 57 | + rev: "v0.9.4" |
57 | 58 | hooks:
|
58 |
| - - id: ruff-format |
59 |
| - - id: ruff |
60 |
| - - repo: local |
| 59 | + - id: ruff-format |
| 60 | + - id: ruff |
| 61 | +- repo: https://gitlab.com/vojko.pribudic.foss/pre-commit-update |
| 62 | + rev: v0.6.0 |
61 | 63 | hooks:
|
62 |
| - - id: code-cov-gen |
| 64 | + - id: pre-commit-update |
| 65 | + args: ["--keep", "mdformat", "--keep", "pre-commit-update", "--keep", "cffconvert"] |
| 66 | +- repo: local |
| 67 | + hooks: |
| 68 | + - id: code-cov-gen |
63 | 69 | name: Generate code coverage
|
64 | 70 | language: system
|
65 | 71 | entry: poetry run coverage run -m pytest
|
66 | 72 | pass_filenames: false
|
67 | 73 | always_run: true
|
68 |
| - - repo: https://github.com/Weird-Sheep-Labs/coverage-pre-commit |
| 74 | +- repo: https://github.com/Weird-Sheep-Labs/coverage-pre-commit |
69 | 75 | rev: 0.1.1
|
70 | 76 | hooks:
|
71 |
| - - id: coverage-xml |
72 |
| - - id: coverage-badge |
| 77 | + - id: coverage-xml |
| 78 | + - id: coverage-badge |
73 | 79 | args: ["-o", "media/coverage-badge.svg"]
|
0 commit comments