|
| 1 | +# Configuration file for `prek`, a git hook framework written in Rust. |
| 2 | +# See https://prek.j178.dev for more information. |
| 3 | +# :schema https://www.schemastore.org/prek.json |
| 4 | +# ^ Remove the space here when toml-sort/#105 is resolved. The directive should be: '#:schema' |
| 5 | + |
| 6 | +exclude = "^{{cookiecutter.project_slug}}/|^tests/data/test_package_generation/" |
| 7 | + |
| 8 | +[[repos]] |
| 9 | +hooks = [ |
| 10 | + {args = [ |
| 11 | + "--config=pyproject.toml", |
| 12 | + ], id = "ruff-check"}, |
| 13 | + {args = [ |
| 14 | + "--config=pyproject.toml", |
| 15 | + ], id = "ruff-format"}, |
| 16 | +] |
| 17 | +repo = "https://github.com/astral-sh/ruff-pre-commit" |
| 18 | +rev = "v0.15.19" |
| 19 | + |
| 20 | +[[repos]] |
| 21 | +hooks = [{args = ["--dot"], id = "markdownlint-fix"}] |
| 22 | +repo = "https://github.com/igorshubovych/markdownlint-cli" |
| 23 | +rev = "v0.49.1" |
| 24 | + |
| 25 | +[[repos]] |
| 26 | +hooks = [{id = "forbid-tabs"}] |
| 27 | +repo = "https://github.com/Lucas-C/pre-commit-hooks" |
| 28 | +rev = "v1.5.6" |
| 29 | + |
| 30 | +[[repos]] |
| 31 | +hooks = [{id = "toml-sort-fix"}] |
| 32 | +repo = "https://github.com/pappasam/toml-sort" |
| 33 | +rev = "v0.24.4" |
| 34 | + |
| 35 | +[[repos]] |
| 36 | +hooks = [ |
| 37 | + {args = [ |
| 38 | + "--group=typechecking", |
| 39 | + "--isolated", |
| 40 | + "--no-default-groups", |
| 41 | + ], id = "ty"}, |
| 42 | +] |
| 43 | +repo = "https://github.com/astral-sh/ty-pre-commit" |
| 44 | +rev = "v0.0.79" |
| 45 | + |
| 46 | +[[repos]] |
| 47 | +hooks = [{args = ["--quote-props=as-needed"], id = "prettier"}] |
| 48 | +repo = "https://github.com/rbubley/mirrors-prettier" |
| 49 | +rev = "v3.8.4" |
| 50 | + |
| 51 | +[[repos]] |
| 52 | +hooks = [ |
| 53 | + {args = [ |
| 54 | + "--fix=lf", |
| 55 | + ], id = "mixed-line-ending"}, |
| 56 | + {id = "check-case-conflict"}, |
| 57 | + {id = "check-docstring-first"}, |
| 58 | + {id = "check-merge-conflict"}, |
| 59 | + {id = "end-of-file-fixer"}, |
| 60 | + {id = "trailing-whitespace"}, |
| 61 | +] |
| 62 | +repo = "https://github.com/pre-commit/pre-commit-hooks" |
| 63 | +rev = "v6.0.0" |
| 64 | + |
| 65 | +[[repos]] |
| 66 | +hooks = [ |
| 67 | + {args = [ |
| 68 | + "--schemafile=.github/schemas/github-issue-forms.json", |
| 69 | + "--verbose", |
| 70 | + ], exclude = '^\.github/ISSUE_TEMPLATE/config\.yml$', files = '^\.github/ISSUE_TEMPLATE/.*\.yml$', id = "check-jsonschema", name = "Validate GitHub issue templates"}, |
| 71 | +] |
| 72 | +repo = "https://github.com/python-jsonschema/check-jsonschema" |
| 73 | +rev = "0.38.0" |
0 commit comments