28 lines
784 B
Plaintext
28 lines
784 B
Plaintext
amends "package://github.com/jdx/hk/releases/download/v1.38.0/hk@1.38.0#/Config.pkl"
|
|
import "package://github.com/jdx/hk/releases/download/v1.38.0/hk@1.38.0#/Builtins.pkl"
|
|
|
|
hooks {
|
|
["pre-commit"] {
|
|
fix = true
|
|
stash = "git"
|
|
steps {
|
|
["ruff-format"] = (Builtins.ruff_format) {
|
|
prefix = "uv run"
|
|
}
|
|
["ruff"] = (Builtins.ruff) {
|
|
prefix = "uv run"
|
|
check = "ruff check engine/ tests/"
|
|
fix = "ruff check --fix --unsafe-fixes engine/ tests/"
|
|
}
|
|
}
|
|
}
|
|
["pre-push"] {
|
|
steps {
|
|
["ruff"] = (Builtins.ruff) {
|
|
prefix = "uv run"
|
|
check = "ruff check engine/ tests/"
|
|
}
|
|
}
|
|
}
|
|
}
|