|
1 | | -exclude: "src/fair_python_cookiecutter/template/.*" # <-- added |
| 1 | +exclude: 'src/fair_python_cookiecutter/template/.*' # <-- added |
2 | 2 | # ---- copy from template below ---- |
3 | 3 | # See https://pre-commit.com for more information |
4 | 4 | # See https://pre-commit.com/hooks.html for more hooks |
5 | 5 | repos: |
6 | | - # GH Actions |
7 | | - - repo: https://github.com/python-jsonschema/check-jsonschema |
8 | | - rev: "0.28.6" |
9 | | - hooks: |
10 | | - - id: check-github-workflows |
| 6 | + # GH Actions |
| 7 | + - repo: https://github.com/python-jsonschema/check-jsonschema |
| 8 | + rev: '0.28.6' |
| 9 | + hooks: |
| 10 | + - id: check-github-workflows |
11 | 11 |
|
12 | | - # Code Quality |
13 | | - - repo: https://github.com/astral-sh/ruff-pre-commit |
14 | | - rev: v0.5.0 |
15 | | - hooks: |
16 | | - - id: ruff |
17 | | - types_or: [python, pyi, jupyter] |
18 | | - args: [--fix] |
19 | | - - id: ruff-format |
20 | | - types_or: [python, pyi, jupyter] |
| 12 | + # Code Quality |
| 13 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 14 | + rev: v0.5.0 |
| 15 | + hooks: |
| 16 | + - id: ruff |
| 17 | + types_or: [python, pyi, jupyter] |
| 18 | + args: [--fix] |
| 19 | + - id: ruff-format |
| 20 | + types_or: [python, pyi, jupyter] |
21 | 21 |
|
22 | | - - repo: https://github.com/pre-commit/mirrors-mypy |
23 | | - rev: "v1.10.1" |
24 | | - hooks: |
25 | | - - id: mypy |
26 | | - args: [--no-strict-optional, --ignore-missing-imports] |
27 | | - # NOTE: you might need to add some deps here: |
28 | | - additional_dependencies: [] |
| 22 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 23 | + rev: 'v1.10.1' |
| 24 | + hooks: |
| 25 | + - id: mypy |
| 26 | + args: [--no-strict-optional, --ignore-missing-imports] |
| 27 | + # NOTE: you might need to add some deps here: |
| 28 | + additional_dependencies: [] |
29 | 29 |
|
30 | | - # Metadata |
31 | | - - repo: https://github.com/citation-file-format/cff-converter-python |
32 | | - rev: "054bda51dbe278b3e86f27c890e3f3ac877d616c" |
33 | | - hooks: |
34 | | - - id: validate-cff |
35 | | - - repo: https://github.com/fsfe/reuse-tool |
36 | | - rev: "v3.0.2" |
37 | | - hooks: |
38 | | - - id: reuse |
| 30 | + # Metadata |
| 31 | + - repo: https://github.com/citation-file-format/cff-converter-python |
| 32 | + rev: '054bda51dbe278b3e86f27c890e3f3ac877d616c' |
| 33 | + hooks: |
| 34 | + - id: validate-cff |
| 35 | + - repo: https://github.com/fsfe/reuse-tool |
| 36 | + rev: 'v3.0.2' |
| 37 | + hooks: |
| 38 | + - id: reuse |
39 | 39 |
|
40 | | - - repo: https://github.com/Materials-Data-Science-and-Informatics/somesy |
41 | | - rev: "v0.4.2" |
42 | | - hooks: |
43 | | - - id: somesy |
| 40 | + - repo: https://github.com/Materials-Data-Science-and-Informatics/somesy |
| 41 | + rev: 'v0.4.3' |
| 42 | + hooks: |
| 43 | + - id: somesy |
44 | 44 |
|
45 | | - # Various general + format-specific helpers |
46 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
47 | | - rev: v4.6.0 |
48 | | - hooks: |
49 | | - - id: check-symlinks |
50 | | - - id: trailing-whitespace |
51 | | - exclude: "CITATION.cff" |
52 | | - - id: mixed-line-ending |
53 | | - args: [--fix=lf] |
54 | | - - id: check-yaml |
55 | | - exclude: "mkdocs.yml" |
56 | | - - id: check-toml |
57 | | - - id: check-json |
58 | | - - id: check-ast |
59 | | - - id: debug-statements |
60 | | - - id: check-merge-conflict |
61 | | - - id: check-shebang-scripts-are-executable |
62 | | - - id: check-added-large-files |
63 | | - args: [--maxkb=10000] |
| 45 | + # Various general + format-specific helpers |
| 46 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 47 | + rev: v4.6.0 |
| 48 | + hooks: |
| 49 | + - id: check-symlinks |
| 50 | + - id: trailing-whitespace |
| 51 | + exclude: 'CITATION.cff' |
| 52 | + - id: mixed-line-ending |
| 53 | + args: [--fix=lf] |
| 54 | + - id: check-yaml |
| 55 | + exclude: 'mkdocs.yml' |
| 56 | + - id: check-toml |
| 57 | + - id: check-json |
| 58 | + - id: check-ast |
| 59 | + - id: debug-statements |
| 60 | + - id: check-merge-conflict |
| 61 | + - id: check-shebang-scripts-are-executable |
| 62 | + - id: check-added-large-files |
| 63 | + args: [--maxkb=10000] |
0 commit comments