Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set
CI / tests (pull_request) Successful in 6m34s

This commit is contained in:
2026-12-03 18:56:28 +01:00
parent 20c83f861f
commit 1ca2c8efe0
142 changed files with 1095 additions and 933 deletions
+3 -3
View File
@@ -293,7 +293,7 @@ class CodeHealth(unittest.TestCase):
pathlib.Path(temp, "docs").mkdir()
pathlib.Path(temp, "docs", "comprehension-history.md").write_text(SCORED.format(overall="7.00"))
with contextlib.redirect_stderr(io.StringIO()):
ranked = file_plan(located(temp, folder.parents[1]), todo).rank()
ranked = file_plan(located(temp, folder.parents[2], {}), todo).rank()
self.assertIsInstance(ranked, ranking.Ranked)
self.assertEqual(ranked.under_bar, [])
self.assertIn("| code health by 1 | 25.4 |", todo.read_text())
@@ -310,10 +310,10 @@ class CodeHealth(unittest.TestCase):
pathlib.Path(temp, "docs").mkdir()
pathlib.Path(temp, "docs", "comprehension-history.md").write_text(SCORED.format(overall="6.50"))
with contextlib.redirect_stderr(io.StringIO()):
ranked = file_plan(located(temp, folder.parents[1]), todo).rank()
ranked = file_plan(located(temp, folder.parents[2], {}), todo).rank()
self.assertIsInstance(ranked, ranking.Ranked)
self.assertIn("| code health by 1 | 25.4 |", todo.read_text())
self.assertEqual(file_plan(located(temp, folder.parents[1]), todo).check(), [])
self.assertEqual(file_plan(located(temp, folder.parents[2], {}), todo).check(), [])
class Risk(unittest.TestCase):