fix(make_pyi): also diff staged changes when scanning for pyi updates#6544
Conversation
pre-commit aligns the worktree with the index, so staged-but-uncommitted edits don't appear in the unstaged diff and their .pyi files were never regenerated.
Greptile SummaryThis PR extends
Confidence Score: 3/5Safe for the common case, but the generator-file self-change detection on line 89 can silently produce the wrong outcome when The core fix works correctly for staged component files. However, the scripts/make_pyi.py — specifically the diff-comparison logic for the generator file itself around line 89. Important Files Changed
|
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
pre-commit aligns the worktree with the index, so staged-but-uncommitted edits don't appear in the unstaged diff and their .pyi files were never regenerated.
Why?
For me VS Code commit does not work because it does not detect the uv venv beause i dont activate it.
To commit code i have to stage the files and then run the git commit command, which causes the pre-commit hook to miss files.
Then i come back and regenerate the hashes from scratch and push again.