Resolve the setup's folders in one module #790

Merged
lilleman merged 9 commits from item-480 into main 2026-12-03 12:19:03 +01:00
2 changed files with 12 additions and 1 deletions
Showing only changes of commit ab028585f7 - Show all commits
+11
View File
@@ -54,6 +54,17 @@ class DeployRelease(unittest.TestCase):
def head(self) -> str:
return self.git(self.target, "describe", "--tags", "--exact-match", "HEAD").strip()
def test_moves_the_claude_home_where_no_checkout_is_named(self):
home = self.temp / "home"
home.mkdir()
self.target.rename(home / ".claude")
self.target = home / ".claude"
self.release("0.2.0", "- Second.\n", '{"theme": "dark"}\n')
ran = subprocess.run([sys.executable, str(TOOL)], capture_output=True, env={**isolated_env(), "HOME": str(home)}, text=True)
self.assertEqual((ran.returncode, self.head()), (0, "v0.2.0"), ran.stderr)
def test_moves_the_checkout_to_the_newest_tag_and_prints_each_newer_versions_changelog(self):
self.release("0.2.0", "- Second.\n", '{"theme": "dark"}\n')
self.release("0.3.0", "- Third: run `make thing` once.\n", '{"theme": "dark"}\n')
+1 -1
View File
@@ -14,7 +14,7 @@ from project_config.main import located
from loop_state.paths import RELEASE_ROOT
# The checkout this hook runs from: bin/rule_hook/ sits two folders below it.
# The checkout this hook runs from.
OWN = RELEASE_ROOT
# settings.json gives rule-hook 30 seconds; rank_todo.py --check takes about a tenth of one.
OWN_CHECK_SECONDS = 20