forked from novitalabs/pegaflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprek.toml
More file actions
46 lines (40 loc) · 1.96 KB
/
Copy pathprek.toml
File metadata and controls
46 lines (40 loc) · 1.96 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
[[repos]]
repo = "builtin"
hooks = [
{ id = "no-commit-to-branch", args = ["--branch", "master", "--branch", "main"] },
{ id = "trailing-whitespace" },
{ id = "end-of-file-fixer" },
{ id = "check-added-large-files", args = ["--maxkb", "500"] },
{ id = "check-merge-conflict" },
{ id = "check-symlinks" },
{ id = "check-toml" },
{ id = "detect-private-key" },
{ id = "mixed-line-ending", args = ["--fix", "lf"] },
]
[[repos]]
repo = "https://github.com/pycqa/isort"
rev = "7.0.0"
hooks = [{ id = "isort", args = ["--profile", "black", "--settings-path", "python"], additional_dependencies = ["toml"], files = "^python/" }]
[[repos]]
repo = "https://github.com/codespell-project/codespell"
rev = "v2.2.4"
hooks = [{ id = "codespell", additional_dependencies = ["tomli"], files = '^python/.*\.pyi?$' }]
[[repos]]
repo = "local"
hooks = [
{ id = "cargo-fmt", name = "cargo fmt", language = "system", entry = "cargo fmt --all -- --check", files = { glob = ["Cargo.toml", "**/Cargo.toml", "**/*.rs"] }, pass_filenames = false, require_serial = true },
{ id = "cargo-clippy", name = "cargo clippy", language = "system", entry = "cargo clippy --workspace --all-targets --no-default-features --features cuda-13,rdma -- -D warnings", files = { glob = ["Cargo.toml", "**/Cargo.toml", "**/*.rs"] }, pass_filenames = false, require_serial = true },
{ id = "cargo-test-release", name = "cargo test --release", language = "system", entry = "cargo test --release --no-default-features --features cuda-13,rdma", pass_filenames = false, always_run = true, require_serial = true, stages = ["pre-commit"] },
]
[[repos]]
repo = "https://github.com/astral-sh/ruff-pre-commit"
rev = "v0.14.14"
hooks = [{ id = "ruff-check", args = ["--fix"] }, { id = "ruff-format" }]
[[repos]]
repo = "https://github.com/crate-ci/typos"
rev = "v1.28.4"
hooks = [{ id = "typos" }]
[[repos]]
repo = "https://github.com/commitizen-tools/commitizen"
rev = "v4.12.1"
hooks = [{ id = "commitizen", stages = ["commit-msg"] }]