Skip to content

Add .gitignore for Python bytecode#32

Merged
JimCollinson merged 1 commit intomainfrom
chore/gitignore-pycache
May 11, 2026
Merged

Add .gitignore for Python bytecode#32
JimCollinson merged 1 commit intomainfrom
chore/gitignore-pycache

Conversation

@JimCollinson
Copy link
Copy Markdown
Collaborator

@JimCollinson JimCollinson commented May 11, 2026

Lands the .gitignore follow-up that PR #29's "Out of scope" section deferred. Adds two patterns covering the Python bytecode cache (__pycache__/, *.pyc) that scripts/sweep_poll.py generates whenever it's compiled or imported during local validation. The cache directory was always meant to be transient, but without a .gitignore it 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 is chore/gitignore-pycache (not claude/sweep-* or claude/prose-*), so all three required checks green-skip via their gate steps; a top-level /.gitignore would otherwise be rejected by both envelope allowlists.

Verification

  • Local: rm -rf scripts/__pycache__ && python3 -m py_compile scripts/sweep_poll.py && git status reports the working tree clean, confirming the ignore pattern catches the generated artifact.
  • Diff: one new file, four lines, two of them a comment explaining why a Python ignore-list exists in a markdown-docs repo.

@JimCollinson JimCollinson merged commit 5e3d670 into main May 11, 2026
3 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.

2 participants