-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathprek.toml
More file actions
61 lines (54 loc) · 2.65 KB
/
Copy pathprek.toml
File metadata and controls
61 lines (54 loc) · 2.65 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
54
55
56
57
58
59
60
61
# Configuration file for `prek`, a git hook framework.
# See https://prek.j178.dev for more information.
#:schema https://www.schemastore.org/prek.json
ci = { autofix_prs = false }
default_language_version = { python = "python3" }
[[repos]]
repo = "builtin"
hooks = [
{ id = "trailing-whitespace" }, # Trim trailing whitespace
{ id = "check-added-large-files" }, # Prevent committing large files
{ id = "check-case-conflict" }, # Check for files that would conflict in case-insensitive filesystems
{ id = "check-illegal-windows-names" }, # Check for filenames invalid on Windows
{ id = "end-of-file-fixer" }, # Ensure newline at EOF
{ id = "file-contents-sorter" }, # Sort lines in explicitly targeted files
{ id = "fix-byte-order-marker" }, # Remove UTF-8 byte order marker
{ id = "check-json" }, # Validate JSON files
{ id = "check-json5" }, # Validate JSON5 files
{ id = "pretty-format-json" }, # Pretty format JSON files
{ id = "check-toml" }, # Validate TOML files
{ id = "check-vcs-permalinks" }, # Check that VCS links are permalinks
{ id = "check-yaml" }, # Validate YAML files
{ id = "check-xml" }, # Validate XML files
{ id = "mixed-line-ending" }, # Normalize or check line endings
{ id = "check-symlinks" }, # Check for broken symlinks
{ id = "destroyed-symlinks" }, # Detect destroyed symlinks
{ id = "check-merge-conflict" }, # Check for merge conflicts
{ id = "detect-private-key" }, # Detect private keys
{ id = "check-shebang-scripts-are-executable" }, # Ensures that" (non-binary) files with a shebang are executable
{ id = "check-executables-have-shebangs" }, # Ensures that" (non-binary) executables have a shebang
]
[[repos]]
repo = "https://github.com/astral-sh/ruff-pre-commit"
rev = "v0.16.2"
hooks = [{ id = "ruff-check", args = ["--fix"] }, { id = "ruff-format" }]
[[repos]]
repo = "local"
[[repos.hooks]]
id = "prettier"
name = "prettier"
entry = "npx prettier --write"
language = "system"
types_or = ["css", "scss", "javascript", "json", "yaml", "markdown", "html"]
[[repos.hooks]]
id = "eslint"
name = "eslint"
entry = "eslint --report-unused-disable-directives"
language = "system"
types_or = ["javascript"]
[[repos.hooks]]
id = "stylelint"
name = "stylelint"
entry = "stylelint"
language = "system"
types_or = ["css", "scss"]