Skip to content

fix: reject negative --top - #2

Merged
hc-ui merged 2 commits into
mainfrom
cursor/reject-negative-top-aa74
Aug 26, 2026
Merged

fix: reject negative --top#2
hc-ui merged 2 commits into
mainfrom
cursor/reject-negative-top-aa74

Conversation

@hc-ui

@hc-ui hc-ui commented Aug 26, 2026

Copy link
Copy Markdown
Owner

改动

新增 longpath.validate.require_nonneg_topscan --top -1 以前会把展示数量当成 0,看起来像「没有超限」。

CLI 已接上_run_scanargs.top < 0 时写 stderr 并退出 2。

与已有 draft「py.typed / compileall」互补。没有 PR 模板。

验证

PYTHONPATH=src python3 -m pytest -q tests → 154 passed, 7 skipped。

@hc-ui
hc-ui marked this pull request as ready for review August 26, 2026 10:29
@hc-ui
hc-ui merged commit 3030d93 into main Aug 26, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant