Skip to content

Stop committing __pycache__ from the CI compile check - #2

Merged
Belfagor2005 merged 1 commit into
mainfrom
fix/pycache
Nov 21, 2026
Merged

Belfagor2005 merged 1 commit into
mainfrom
fix/pycache

Conversation

@Belfagor2005

Copy link
Copy Markdown
Collaborator

Why

The compile check I added to the PEP8 Aggressive workflow yesterday runs python -m compileall -q . inside the repo. That writes __pycache__ folders, and the next step (git add .) commits them.

Change

  • The compile check now writes the bytecode to the runner's temp dir (PYTHONPYCACHEPREFIX: ${{ runner.temp }}/pycache), so nothing is created in the repo. Syntax errors still make the step fail.
  • Removes the committed *.cpython-310.pyc caches (8 files). Other .pyc files, if any, are left alone.
  • Adds __pycache__/ to .gitignore.

No code changes.


Generated by Claude Code

The compile check added to the PEP8 workflow ran compileall inside the
repo, so it wrote __pycache__ folders that the workflow's 'git add .'
then committed.

- Write the bytecode to the runner's temp dir (PYTHONPYCACHEPREFIX).
- Remove the committed *.cpython-310.pyc caches.
- Add __pycache__/ to .gitignore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EVc11Hv6rDpu2ehEJGDhWD
@Belfagor2005
Belfagor2005 merged commit 22603a9 into main Nov 21, 2026
6 checks passed
@Belfagor2005
Belfagor2005 deleted the fix/pycache branch November 21, 2026 20:27
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