Compile the floor check from bytes so the interpreter picks the encoding, and keep the changelog line to the consumer's fact
This commit is contained in:
+1
-1
@@ -14,4 +14,4 @@
|
||||
- `loop-claude` runs every claude it starts, the interrupt included, on the project's model, saved in `~/.claude/loop-claude-models.json`. A project without an entry is asked for one on the terminal, from Claude Code's model catalog, and exits 2 without a terminal; delete the entry to pick again. `LOOP_CLAUDE_WORKER_MODEL` and `LOOP_CLAUDE_JUDGE_MODEL` override it; with both set, nothing is asked.
|
||||
- `settings.json`, the agents and the status line run on any machine unedited; the status line shows reset times in the machine's own time zone.
|
||||
- `loop-claude`'s no-premises exit names what is wrong: `README.md` unopenable or not UTF-8, a `## Goals` or `## Audience` heading missing or repeated, or nothing under one.
|
||||
- `bin/` runs on Python 3.11 or newer; the test suite fails on a newer syntax.
|
||||
- `bin/` runs on Python 3.11 or newer.
|
||||
|
||||
@@ -13,6 +13,6 @@ class PythonFloor(unittest.TestCase):
|
||||
self.assertIsNotNone(named, "README.md's Install names `Python 3.N or newer`")
|
||||
tracked = subprocess.run(["git", "ls-files", "-z", "bin"], capture_output=True, check=True, cwd=ROOT, text=True).stdout.split("\0")
|
||||
self.assertTrue(tracked[0])
|
||||
check = "import sys\nfor path in sys.argv[1:]:\n\tcompile(open(path).read(), path, 'exec')"
|
||||
check = "import sys\nfor path in sys.argv[1:]:\n\tcompile(open(path, 'rb').read(), path, 'exec')"
|
||||
compiled = subprocess.run(["uv", "run", "--no-project", "--python", named.group(1), "python", "-c", check, *filter(None, tracked)], capture_output=True, cwd=ROOT, text=True)
|
||||
self.assertEqual(compiled.returncode, 0, compiled.stderr)
|
||||
|
||||
Reference in New Issue
Block a user