-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsweatfile
More file actions
30 lines (27 loc) · 1.71 KB
/
Copy pathsweatfile
File metadata and controls
30 lines (27 loc) · 1.71 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
[direnv]
# TODO(amarbel-llc/spinclass#19): switch to dotenv when supported
# dotenv = { MOXIN_PATH = "$WORKTREE/build/moxins" }
envrc = ["source_up", "use flake", "export MOXIN_PATH=$PWD/result/share/moxy/moxins"]
[hooks]
pre-merge = "just"
# Per-commit repair: format the index-staged content at authoring time so every
# commit is conformant in history. `conformist-pre-commit` is the config-specific,
# toolchain-hermetic wrapper the conformist module exposes
# (conformistEval.config.build.preCommit, on the devShell PATH via flake.nix). It
# bakes moxy's generated store-path config and store-pins every formatter, with
# `--exit-zero-on-fix` so a successful repair lets the commit proceed. Do NOT use
# a bare `conformist --staged`: that resolves formatters from PATH and silently
# skips file types the shell lacks (conformist#51). Requires the devShell active
# (direnv); installed per-worktree by spinclass at `sc start`/`sc resume`, so an
# already-running session must `sc resume` to pick it up.
pre-commit = "conformist-pre-commit"
# Pre-merge REPAIR phase (spinclass FDR 0018): before the pre-merge verify gate,
# auto-fold mechanical fixes (formatting) into the commit being merged via
# `git commit --amend`. `conformist-repair` is the store-pinned `--commit --amend`
# counterpart of conformist-pre-commit (the module's build.repair output); both
# share one wrapper body, on the devShell PATH via flake.nix. spinclass runs this
# during the merge from the worktree's ambient (direnv) environment, so the
# devShell must be active — a session created BEFORE the conformist migration
# landed lacks conformist-repair on PATH and will 127; merge from a session
# whose devShell already carries it.
repair = "conformist-repair"