mirror of
https://github.com/kuhyx/steam-backlog-enforcer.git
synced 2026-11-28 20:49:15 +01:00
Re-point paths for the ~ reorganisation (home-tidy)
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AwtowrowDXx6ccmWVPkCaF
This commit is contained in:
parent
0f2609fc52
commit
4c35dc9b63
@ -8,7 +8,7 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
# Four markdown namespaces (README / CLAUDE* / DOCS* / TODO*), plus the
|
# Four markdown namespaces (README / CLAUDE* / DOCS* / TODO*), plus the
|
||||||
# rule that a TODO carries "REMOVE ME AFTER FINISH" and nothing else may.
|
# rule that a TODO carries "REMOVE ME AFTER FINISH" and nothing else may.
|
||||||
# Shared gate in ~/utils owns the namespaces and the exemption list, so
|
# Shared gate in ~/src/utils owns the namespaces and the exemption list, so
|
||||||
# one repo's idea of a valid name cannot drift from every other repo's.
|
# one repo's idea of a valid name cannot drift from every other repo's.
|
||||||
- id: md-naming
|
- id: md-naming
|
||||||
name: markdown naming convention
|
name: markdown naming convention
|
||||||
|
|||||||
@ -61,7 +61,7 @@ an exempt extension, no `# noqa`-style suppressions.
|
|||||||
|
|
||||||
A refactor without a gate silently regrows. Before this task is done:
|
A refactor without a gate silently regrows. Before this task is done:
|
||||||
|
|
||||||
1. Wire the shared gate `~/utils/scripts/check_file_length.sh` into this repo's
|
1. Wire the shared gate `~/src/utils/scripts/check_file_length.sh` into this repo's
|
||||||
`.pre-commit-config.yaml` as a local hook. If the repo has no pre-commit
|
`.pre-commit-config.yaml` as a local hook. If the repo has no pre-commit
|
||||||
config, add a minimal one.
|
config, add a minimal one.
|
||||||
2. The hook checks **files in the commit** (not the whole tree), so unrelated
|
2. The hook checks **files in the commit** (not the whole tree), so unrelated
|
||||||
@ -72,7 +72,7 @@ A refactor without a gate silently regrows. Before this task is done:
|
|||||||
|
|
||||||
## Done condition
|
## Done condition
|
||||||
|
|
||||||
- `bash ~/utils/scripts/check_file_length.sh --all` from this repo root exits 0.
|
- `bash ~/src/utils/scripts/check_file_length.sh --all` from this repo root exits 0.
|
||||||
- The repo's own test suite and coverage bar are still green.
|
- The repo's own test suite and coverage bar are still green.
|
||||||
- `pre-commit run --files <changed files>` passes.
|
- `pre-commit run --files <changed files>` passes.
|
||||||
- A deliberately over-250-line test file, staged, makes `git commit` **fail**.
|
- A deliberately over-250-line test file, staged, makes `git commit` **fail**.
|
||||||
|
|||||||
@ -11,7 +11,7 @@ readonly SCRIPT_DIR
|
|||||||
missing=0
|
missing=0
|
||||||
|
|
||||||
if ! command -v depotdownloader >/dev/null 2>&1; then
|
if ! command -v depotdownloader >/dev/null 2>&1; then
|
||||||
echo "missing: depotdownloader (see ~/depotdownloader)" >&2
|
echo "missing: depotdownloader (see ~/vendor/depotdownloader)" >&2
|
||||||
missing=1
|
missing=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ============================================================================
|
# ============================================================================
|
||||||
# Fail if any dependency in the commit is behind its ecosystem's newest stable.
|
# Fail if any dependency in the commit is behind its ecosystem's newest stable.
|
||||||
#
|
#
|
||||||
# Thin delegate to the shared gate in ~/utils, which owns the registry
|
# Thin delegate to the shared gate in ~/src/utils, which owns the registry
|
||||||
# adapters, the pre-release rules and the allowlist semantics. Copying that
|
# adapters, the pre-release rules and the allowlist semantics. Copying that
|
||||||
# logic here is what lets one repo's idea of "current" drift from every other
|
# logic here is what lets one repo's idea of "current" drift from every other
|
||||||
# repo's -- so this script only locates the shared checker and forwards its
|
# repo's -- so this script only locates the shared checker and forwards its
|
||||||
@ -18,12 +18,12 @@
|
|||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
readonly SHARED_GATE="${UTILS_ROOT:-$HOME/utils}/scripts/check_dependency_freshness.sh"
|
readonly SHARED_GATE="${UTILS_ROOT:-$HOME/src/utils}/scripts/check_dependency_freshness.sh"
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
if [[ ! -x "$SHARED_GATE" ]]; then
|
if [[ ! -x "$SHARED_GATE" ]]; then
|
||||||
echo "Error: shared dependency-freshness gate not found at $SHARED_GATE" >&2
|
echo "Error: shared dependency-freshness gate not found at $SHARED_GATE" >&2
|
||||||
echo " Clone github.com/kuhyx/utils to ~/utils, or set" >&2
|
echo " Clone github.com/kuhyx/utils to ~/src/utils, or set" >&2
|
||||||
echo " UTILS_ROOT to where it lives." >&2
|
echo " UTILS_ROOT to where it lives." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# ============================================================================
|
# ============================================================================
|
||||||
# Fail if any markdown file breaks the shared naming convention.
|
# Fail if any markdown file breaks the shared naming convention.
|
||||||
#
|
#
|
||||||
# Thin delegate to the shared gate in ~/utils, which owns the four namespaces
|
# Thin delegate to the shared gate in ~/src/utils, which owns the four namespaces
|
||||||
# (README / CLAUDE* / DOCS* / TODO*), the "REMOVE ME AFTER FINISH" marker rule
|
# (README / CLAUDE* / DOCS* / TODO*), the "REMOVE ME AFTER FINISH" marker rule
|
||||||
# and the exemption list. Copying that logic here is what lets one repo's idea
|
# and the exemption list. Copying that logic here is what lets one repo's idea
|
||||||
# of a valid name drift from every other repo's -- so this script only locates
|
# of a valid name drift from every other repo's -- so this script only locates
|
||||||
@ -16,12 +16,12 @@
|
|||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
readonly SHARED_GATE="${UTILS_ROOT:-$HOME/utils}/scripts/check_md_naming.sh"
|
readonly SHARED_GATE="${UTILS_ROOT:-$HOME/src/utils}/scripts/check_md_naming.sh"
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
if [[ ! -x "$SHARED_GATE" ]]; then
|
if [[ ! -x "$SHARED_GATE" ]]; then
|
||||||
echo "Error: shared markdown-naming gate not found at $SHARED_GATE" >&2
|
echo "Error: shared markdown-naming gate not found at $SHARED_GATE" >&2
|
||||||
echo " Clone github.com/kuhyx/utils to ~/utils, or set" >&2
|
echo " Clone github.com/kuhyx/utils to ~/src/utils, or set" >&2
|
||||||
echo " UTILS_ROOT to where it lives." >&2
|
echo " UTILS_ROOT to where it lives." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user