Add .gitignore for Python bytecode#32
Merged
JimCollinson merged 1 commit intomainfrom May 11, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lands the
.gitignorefollow-up that PR #29's "Out of scope" section deferred. Adds two patterns covering the Python bytecode cache (__pycache__/,*.pyc) thatscripts/sweep_poll.pygenerates whenever it's compiled or imported during local validation. The cache directory was always meant to be transient, but without a.gitignoreit kept tripping the stop-hook as an untracked file.Minimum-scope intentionally — no
.venv/,.idea/,.DS_Store,*.egg-info/, etc. Patterns can be added later when a real need surfaces. The branch ischore/gitignore-pycache(notclaude/sweep-*orclaude/prose-*), so all three required checks green-skip via their gate steps; a top-level/.gitignorewould otherwise be rejected by both envelope allowlists.Verification
rm -rf scripts/__pycache__ && python3 -m py_compile scripts/sweep_poll.py && git statusreports the working tree clean, confirming the ignore pattern catches the generated artifact.