-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprek.toml
More file actions
53 lines (50 loc) · 1.97 KB
/
prek.toml
File metadata and controls
53 lines (50 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[[repos]]
hooks = [
{args = ["--all", "--in-place"], entry = "toml-sort", exclude = ".*.lock", id = "toml-sort", language = "system", name = "toml sort", types = ["toml"]},
{args = ["--number", "--wrap=keep"], entry = "mdformat", exclude = "(.github/ISSUE_TEMPLATE/.*|README).md", id = "mdformat", language = "system", name = "mdformat", types = ["markdown"]},
{entry = "ruff check .", id = "ruff-check", language = "system", name = "ruff check", pass_filenames = false, types = ["python"]},
{entry = "ruff format .", id = "ruff-format", language = "system", name = "ruff format", pass_filenames = false, types = ["python"]},
{entry = "ty check .", id = "ty", language = "system", name = "ty", pass_filenames = false, types = ["python"]},
]
repo = "local"
[[repos]]
hooks = [
{args = ["--allow-multiple-documents"], id = "check-yaml"},
{args = ["--assume-in-merge"], id = "check-merge-conflict"},
{args = ["--markdown-linebreak-ext=md"], exclude_types = ["svg"], id = "trailing-whitespace"},
{exclude_types = ["json", "svg", "xml"], id = "end-of-file-fixer"},
{id = "check-added-large-files"},
{id = "check-case-conflict"},
{id = "check-executables-have-shebangs"},
{id = "check-json"},
{id = "check-json5"},
{id = "check-symlinks"},
{id = "check-toml"},
{id = "check-xml"},
{id = "detect-private-key"},
{id = "fix-byte-order-marker"},
{id = "mixed-line-ending"},
]
repo = "builtin"
[[repos]]
hooks = [
{args = ["--autofix", "--indent=2"], id = "pretty-format-json"},
{id = "check-ast"},
{id = "check-builtin-literals"},
{id = "check-docstring-first"},
{id = "check-illegal-windows-names"},
{id = "check-merge-conflict"},
{id = "check-shebang-scripts-are-executable"},
{id = "check-vcs-permalinks"},
{id = "debug-statements"},
{id = "forbid-submodules"},
{id = "name-tests-test"},
]
repo = "https://github.com/pre-commit/pre-commit-hooks"
rev = "v6.0.0"
[[repos]]
hooks = [
# {id = "check-hooks-apply"},
{id = "check-useless-excludes"},
]
repo = "meta"