31 lines
766 B
Plaintext
31 lines
766 B
Plaintext
amends "package://github.com/jdx/hk/releases/download/v1.36.0/hk@1.36.0#/Config.pkl"
|
|
import "package://github.com/jdx/hk/releases/download/v1.36.0/hk@1.36.0#/Builtins.pkl"
|
|
|
|
// Only process files in sketches/ (excluding vendor/)
|
|
exclude = List("**", "!sketches/**", "sketches/**/vendor/**")
|
|
|
|
local linters = new Mapping<String, Step> {
|
|
["format"] = Builtins.clang_format
|
|
|
|
["trailing-whitespace"] = Builtins.trailing_whitespace
|
|
|
|
["mixed-line-ending"] = Builtins.mixed_line_ending
|
|
|
|
["check-merge-conflict"] = Builtins.check_merge_conflict
|
|
}
|
|
|
|
hooks {
|
|
["pre-commit"] {
|
|
fix = true
|
|
stash = "git"
|
|
steps = linters
|
|
}
|
|
["fix"] {
|
|
fix = true
|
|
steps = linters
|
|
}
|
|
["check"] {
|
|
steps = linters
|
|
}
|
|
}
|