Repository navigation
Description
When a repo has no input at its root, the page checks the shallowest lockfile or requirements.txt it finds in a subfolder, on its own, with no word about the others. wheelgap DIR (wheelgap/wheelgap#656 and wheelgap/wheelgap#662, after 0.13.0) does that only when there is exactly one such file and nothing says it's the wrong one. With several, or with one whose name says it's for benchmarks, docs, tests or examples, it lists them and asks.
The two now give different answers for the same repo. From the 300-repo corpus (wheelgap main at 7983f7e, trees rebuilt from git to depth 3), take the 48 repos where wheelgap DIR lists files to choose from. Running the page's plan() and autoPick() on the same trees, with the step from an unreadable root pyproject.toml to the next file, the page checks a file it picked itself in 39 of them. For example:
| repo | the page checks | wheelgap DIR |
|---|---|---|
| huggingface/transformers | benchmark_v2/requirements.txt |
lists it, and says its only inputs are named for development, tests, docs or benchmarks |
| vllm-project/vllm | benchmarks/kernels/requirements.txt |
lists 12 requirements files to choose from |
| huggingface/diffusers | benchmarks/requirements.txt |
lists 35, all named for development, tests, docs or benchmarks |
| python/cpython | Doc/pylock.toml |
lists it: a docs file |
| langchain-ai/langchain | libs/core/uv.lock |
lists 21 subfolder inputs |
| Shubhamsaboo/awesome-llm-apps | one example agent's uv.lock |
lists 131 |
| Significant-Gravitas/AutoGPT | classic/poetry.lock |
lists 4 |
A green verdict for transformers that comes from its benchmark requirements is the answer wheelgap's own rules were written to avoid. (The corpus's estimate counted these 46 repos as dead ends. They aren't: the page guesses.)
Where
autoPick()andpickLockfile()insite/check/check-logic.mjs: any exactly-named file wins, shallowest first.isSideFile()(the copy of wheelgap's_SIDE_WORDS) is applied only to requirements files under other names.plan()and_lockfile_sort_key()insite/check/driver.pylist the files.withoutUnreadable()andonResult()insite/check/check.mjs: the step to the next file after an unreadable rootpyproject.toml.- The rules to match are
load_directory()and_nested_inputs()in wheelgap'ssrc/wheelgap/sources.pyon main. The checker pins 0.13.0 (Bump the wheelgap pins after 0.14.0: the checker's (0.13.0) and the nightly scan's (0.9.0) #208), so for now they have to be mirrored in JavaScript, asisSideFile()is, with a comment naming the functions.
What to do
- A file in the root, or in the folder a link names: as today.
- Otherwise take one candidate per subfolder, up to 3 folders down, as
wheelgap FOLDERwould read it: its first lockfile name, else apyproject.toml. Leave out the foldersplan()already skips. - Exactly one candidate, not side-named, and the root isn't a project of its own (no
setup.py,setup.cfg, orpyproject.tomlwith[project],[build-system]or Poetry dependencies): check it, and say so in the verdict detail:No input at the root: checked backend/uv.lock, the only one in a subfolder. - Several, or only side-named ones, or the root is a project: no pick. Show them with
chooseFile(), as feat(check): discover and prioritize additional requirements*.txt files in plan() #229 does for requirements files under other names, with the reason in the same wordswheelgap DIRuses. - The step from an unreadable root
pyproject.tomlfollows the same rule. It never lands onbenchmark_v2/requirements.txtby itself. - A link to a file, or a file picked under "Lockfile", is checked as today.
Done when:
-
tests/site/check-logic.test.mjs:autoPick()on path lists shaped like MiroFish (onlybackend/uv.lock: picked), transformers (a rootpyproject.tomlwith no dependencies andbenchmark_v2/requirements.txt: choose), langchain (manylibs/*/uv.lock: choose), cpython (Doc/pylock.toml: choose) and a repo with a rootsetup.pyand onetools/requirements.txt(choose). -
tests/site/check-page.test.mjs: after the rootpyproject.tomlfallback, a repo shaped like transformers shows the chooser, not a result. - Repos with a root input get the same pick as before: the existing
autoPick()andpickLockfile()tests pass unchanged. - In the PR:
huggingface/transformersandlangchain-ai/langchainbefore and after, as screenshots.
Activity
Repo checker: with no input at the root, follow wheelgap DIR into the…