You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Repo checker: a settings-only subfolder pyproject.toml makes the page ask where wheelgap DIR picks the other input #242
Since #241, a repo with no input at its root is checked using wheelgap DIR's rules (load_directory() and _nested_inputs() in wheelgap's sources.py on main). One case still differs.
_folder_input() counts a subfolder's pyproject.toml only when it lists [project] dependencies. The page can't tell that without fetching the file, so autoPick() in site/check/check-logic.mjs counts every subfolder pyproject.toml as an input.
Example:
repo layout
wheelgap DIR
the page
scripts/pyproject.toml (only [tool.ruff]) + backend/uv.lock, nothing at the root
checks backend/uv.lock
asks between backend/uv.lock and scripts/pyproject.toml
The page asks instead of guessing, so the answer isn't wrong, but it's an extra step that wheelgap DIR doesn't need. With a single candidate, the page already tries the pyproject.toml and moves on when it has nothing to check. With two or more, it asks first.
Suggested fix
In load() in site/check/worker.mjs, fetch the subfolder pyproject.toml files that are candidates (up to 3 folders down, a few at a time, with a cap). This only applies when the root has no input.
Have the driver say which of them wheelgap FOLDER would read: [project] dependencies that aren't only dependency groups, and something to check. This is like _folder_input().
Leave the others out of autoPick()'s candidates.
Fetches go to raw.githubusercontent.com only. No package names are sent anywhere.
Done when:
tests/site/check-logic.test.mjs: autoPick() picks backend/uv.lock beside a scripts/pyproject.toml the driver marked as having nothing to check. It still asks beside one that lists dependencies, or one whose fetch failed.
tests/test_check_driver.py: the driver's answer for a settings-only file, a groups-only file, a [project] with no dependencies, dynamic dependencies, and a file that isn't valid TOML, compared against _folder_input() on wheelgap main.
tests/site/check-page.test.mjs: the worker fetches subfolder pyproject.toml files only when the root has no input, and the number of fetches is capped.
No extra GitHub API calls: the files are read from raw.githubusercontent.com.
Activity