Repository navigation
Expand file tree
/
Copy pathprek.toml
More file actions
64 lines (60 loc) · 1.84 KB
/
Copy pathprek.toml
File metadata and controls
64 lines (60 loc) · 1.84 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
62
63
64
# Git hooks via prek (https://prek.j178.dev). Install: prek install
#:schema https://www.schemastore.org/prek.json
exclude = """(?x)(
^\\.pixi/|
^\\.venv-docs/|
^docs/build/|
^docs/source/crates/|
^target/|
^work/|
^Cargo\\.lock$|
^pixi\\.lock$|
^.*\\.svg$|
^.*\\.png$|
^.*\\.jpg$|
^.*\\.patch$|
^skills/new-package/overlays/|
^fixtures/foreign_ingest/
)"""
[[repos]]
repo = "builtin"
hooks = [
# Two trailing spaces in Markdown are a hard line break.
# fixtures/lint_w291/bad.eb keeps its trailing spaces: that is the W291 case.
{ id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = "fixtures/lint_w291/bad\\.eb" },
# Recorded OSV responses are the bytes the API returned.
{ id = "end-of-file-fixer", exclude = "tests/component_reach_eessi/osv/.*\\.json" },
# meta.yaml is a conda-forge Jinja recipe, not YAML.
{ id = "check-yaml", exclude = "tests/sbom_recorded/foreign/conda/meta\\.yaml" },
{ id = "check-toml" },
{ id = "check-merge-conflict" },
{ id = "check-added-large-files", args = ["--maxkb=1500"] },
{ id = "detect-private-key" },
]
[[repos]]
repo = "local"
hooks = [
{
id = "llms-leakguard",
name = "llms leakguard",
entry = "python3 scripts/llms_leakguard.py",
language = "system",
pass_filenames = false,
always_run = true,
},
]
[[repos]]
repo = "https://github.com/codespell-project/codespell"
rev = "v2.4.1"
hooks = [
{
id = "codespell",
args = [
# tests/sbom_recorded is upstream EasyBuild and conda-forge text.
"--skip=*.lock,*.svg,*.png,*.jpg,*.eb,*.patch,Cargo.lock,pixi.lock,*sbom_recorded/*",
"-L",
# ser: toml::ser. alo: difflib alo/ahi bounds. polute: quoted framework comment.
"unparseable,unparsable,intack,notin,thirdparty,anlysis,libray,atleast,atmost,ser,alo,polute",
],
},
]