Typst: tytanic (`tt run`), the standard package test runner, is unknown; typstyle via its action + git diff is not a formatting gate

未關閉 適合新手
#263 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
68/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
python
領域
ci-cd, tooling

研究方向

從 ecosystems/typst.py 第 28-34 行的 Typst 設定檔開始,該處只列出 typst compile 和 typst c 作為可辨識的指令,並查看 tests-run 事實如何使用這份清單。將 tt run 新增為可辨識的測試指令,並新增一個使用 tests/a/test.typ 的測試,以及一個工作流程步驟 run: tt run。當此重現報告 tests-run PASS 並指出 tytanic 時即完成。另外檢查 facts/formatting.py 中 typstyle-action 的 apply-then-diff 情況,但將其視為獨立的變更。

由索引模型根據 Issue 內容生成。

描述

cetz, fletcher and touying run tt run (compiles every tests/**/test.typ against references) → tests-run FAIL/WARN "no CI runs typst compile"; ecosystems/typst.py knows only typst compile/typst c. touying's typstyle job formats with typstyle-rs/typstyle-action and fails on git diff --exit-code, the apply-then-diff pattern facts/formatting.py accepts, but the action is unknown → code-formatting FAIL.

Evidence from the corpus audit

cetz-package/cetz, Jollywatt/typst-fletcher, touying-typ/touying / tests-run
  • kind: UNSUPPORTED (FALSE_NEGATIVE for cetz and fletcher)
  • actual: cetz FAIL: Typst: tests found in 171 file(s), but no CI configuration runs typst compile main.typ; fletcher WARN: tests found in 82 file(s), but no CI configuration runs typst compile main.typ; touying PASS only because it also compiles two regression documents directly.
  • expected: PASS: all three run the Typst test runner tytanic (tt run), which compiles every tests/**/test.typ and compares against references; it is the standard Typst package test tool (also in fletcher's pixi.toml), and the profile (ecosystems/typst.py:28-34) knows only typst compile/typst c.
  • evidence: fletcher .github/workflows/ci.yaml:24: crate: tytanic, :28: run: tt run; touying .github/workflows/test.yml:28: run: tt run; cetz justfile:19: tt run {{filter}} (via just test, see next finding); fletcher pixi.toml:12: test = "tt run".
  • repro: tests/a/test.typ + workflow step run: tt run; expect tests-run PASS naming tytanic.
  • confidence: high

Found by the regression-corpus audit (235 real repositories, one or more per ecosystem profile; corpus and expected results in corpus/). Evidence is quoted from the audited checkouts at the commits pinned in corpus/projects.toml; <checkouts>/<owner>__<repo> is such a checkout.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

主要語言
Python
星號
4
分支
1
平均合併
10 小時 41 分鐘
30 天內合併 PR
79

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

cpp-best-practices/project_validator 的其他 Issue

查看 cpp-best-practices/project_validator 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。