|
1 | 1 | repos: |
2 | | - # Various general + format-specific helpers |
3 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
4 | | - rev: v4.4.0 |
5 | | - hooks: |
6 | | - - id: check-symlinks |
7 | | - - id: trailing-whitespace |
8 | | - - id: mixed-line-ending |
9 | | - args: [--fix=lf] |
10 | | - - id: check-yaml |
11 | | - exclude: "mkdocs.yml" |
12 | | - - id: check-toml |
13 | | - - id: check-json |
14 | | - - id: check-ast |
15 | | - - id: debug-statements |
16 | | - - id: check-merge-conflict |
17 | | - - id: check-shebang-scripts-are-executable |
18 | | - - id: check-added-large-files |
19 | | - args: [--maxkb=10000] |
20 | | - - repo: https://github.com/python-jsonschema/check-jsonschema |
21 | | - rev: "0.22.0" |
22 | | - hooks: |
23 | | - - id: check-github-workflows |
24 | | - - repo: https://github.com/astral-sh/ruff-pre-commit |
25 | | - # Ruff version. |
26 | | - rev: v0.1.6 |
27 | | - hooks: |
28 | | - # Run the linter. |
29 | | - - id: ruff |
30 | | - types_or: [python, pyi, jupyter] |
31 | | - args: [--fix] |
32 | | - # Run the formatter. |
33 | | - - id: ruff-format |
34 | | - types_or: [python, pyi, jupyter] |
35 | | - - repo: https://github.com/pre-commit/mirrors-mypy |
36 | | - rev: "v1.1.1" |
37 | | - hooks: |
38 | | - - id: mypy |
39 | | - args: [--no-strict-optional, --ignore-missing-imports] |
40 | | - # NOTE: you might need to add some deps here: |
41 | | - additional_dependencies: [] |
| 2 | + # Various general + format-specific helpers |
| 3 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 4 | + rev: v4.6.0 |
| 5 | + hooks: |
| 6 | + - id: check-symlinks |
| 7 | + - id: trailing-whitespace |
| 8 | + - id: mixed-line-ending |
| 9 | + args: [--fix=lf] |
| 10 | + - id: check-yaml |
| 11 | + exclude: 'mkdocs.yml' |
| 12 | + - id: check-toml |
| 13 | + - id: check-json |
| 14 | + - id: check-ast |
| 15 | + - id: debug-statements |
| 16 | + - id: check-merge-conflict |
| 17 | + - id: check-shebang-scripts-are-executable |
| 18 | + - id: check-added-large-files |
| 19 | + args: [--maxkb=10000] |
| 20 | + - repo: https://github.com/python-jsonschema/check-jsonschema |
| 21 | + rev: '0.29.0' |
| 22 | + hooks: |
| 23 | + - id: check-github-workflows |
| 24 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 25 | + # Ruff version. |
| 26 | + rev: v0.5.4 |
| 27 | + hooks: |
| 28 | + # Run the linter. |
| 29 | + - id: ruff |
| 30 | + types_or: [python, pyi, jupyter] |
| 31 | + args: [--fix] |
| 32 | + # Run the formatter. |
| 33 | + - id: ruff-format |
| 34 | + types_or: [python, pyi, jupyter] |
| 35 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 36 | + rev: 'v1.11.0' |
| 37 | + hooks: |
| 38 | + - id: mypy |
| 39 | + args: [--no-strict-optional, --ignore-missing-imports] |
| 40 | + # NOTE: you might need to add some deps here: |
| 41 | + additional_dependencies: [] |
42 | 42 |
|
43 | | - # Metadata |
44 | | - - repo: https://github.com/citation-file-format/cff-converter-python |
45 | | - rev: "44e8fc9" |
46 | | - hooks: |
47 | | - - id: validate-cff |
48 | | - - repo: https://github.com/fsfe/reuse-tool |
49 | | - rev: "v1.1.2" |
50 | | - hooks: |
51 | | - - id: reuse |
| 43 | + # Metadata |
| 44 | + - repo: https://github.com/citation-file-format/cff-converter-python |
| 45 | + rev: '054bda51dbe278b3e86f27c890e3f3ac877d616c' |
| 46 | + hooks: |
| 47 | + - id: validate-cff |
| 48 | + - repo: https://github.com/fsfe/reuse-tool |
| 49 | + rev: 'v4.0.3' |
| 50 | + hooks: |
| 51 | + - id: reuse |
52 | 52 |
|
53 | | - - repo: local |
54 | | - hooks: |
55 | | - # NOTE: copy from .pre-commit-hooks.yaml, for technical reasons |
56 | | - - id: somesy-sync |
57 | | - name: Run somesy sync |
58 | | - entry: somesy sync |
59 | | - language: python |
60 | | - files: '^\.somesy\.toml|pyproject\.toml$' |
61 | | - pass_filenames: false |
| 53 | + - repo: local |
| 54 | + hooks: |
| 55 | + # NOTE: copy from .pre-commit-hooks.yaml, for technical reasons |
| 56 | + - id: somesy-sync |
| 57 | + name: Run somesy sync |
| 58 | + entry: somesy sync |
| 59 | + language: python |
| 60 | + files: '^\.somesy\.toml|pyproject\.toml$' |
| 61 | + pass_filenames: false |
62 | 62 |
|
63 | | - - id: somesy-fill |
64 | | - name: Update AUTHORS.md |
65 | | - entry: somesy fill -t docs/_template_authors.md -o AUTHORS.md |
66 | | - language: python |
67 | | - files: '^\.somesy\.toml|pyproject\.toml$' |
68 | | - pass_filenames: false |
| 63 | + - id: somesy-fill |
| 64 | + name: Update AUTHORS.md |
| 65 | + entry: somesy fill -t docs/_template_authors.md -o AUTHORS.md |
| 66 | + language: python |
| 67 | + files: '^\.somesy\.toml|pyproject\.toml$' |
| 68 | + pass_filenames: false |
0 commit comments