chore(hooks): inherit common's pre-commit instead of redefining it #150
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/GOV-46-inherit-pre-commit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Deletes this repo's local
pre-commitrecipe and configures common's instead. Tracked in GOV-46.Depends on
psa-systems/commonPR #22 and is stacked on this repo's PR #149 (chore/GOV-45-update-common-submodule), so review that one first. Merge order: common#22, then #149, then this.Why
Forking
pre-commitsilently opted this repo out of every change to it.check-tree-ownershiplanded in both of common's shared variants and reached only the repos that had not forked the recipe; it had to be hand-ported here in #149. The same applies to anything common adds next.What the fork encoded, and where it lives now
dev_imageviadocker run, not a composeappservice this repo does not havepre_commit_mode := "docker"(already supported; the fork predated it)cargo clippy --all-targets -- -D warnings, matching check.yml byte for byteclippy_args := "--all-targets -- -D warnings"cargo test --all-targetstest_args := "--all-targets"cargo build --all-targetscompile_step/compile_argsdev-youtrack-cli-cargo-{target,registry,git}-$USERdev-cleanneeds no changeDocs
CLAUDE.md's CI-parity section is rewritten: a new
check.ymlstep now becomes a common pre-commit variable in the same PR, not a line in a local recipe, and it states explicitly that a localpre-commitmust not be reintroduced.Verification
just pre-commiton this branch runs the identical step list the fork ran, in the same order, and passes:cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo build --all-targets,cargo test --all-targets(255 + 216 + 53 + the smaller suites, all green), thencheck-tree-ownershipreporting the working tree fully owned by the host user.grep -cE '^pre-commit' justfilereturns 0.#GOV-46