Skip to content

Remove committed Python bytecode and ignore Python build artifacts - #64

Merged
roiyz-lb merged 1 commit into
mainfrom
issue-57-remove-pyc
Nov 29, 2026
Merged

roiyz-lb merged 1 commit into
mainfrom
issue-57-remove-pyc

Conversation

@ron-lb

@ron-lb ron-lb commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #57

  • git rm -r test/integration/plugin/__pycache__: removes the stale test_lightbits_volumes.cpython-39.pyc added in 779e0de
  • Adds __pycache__/ and *.py[cod] to .gitignore
  • git ls-files | grep -E '\.pyc$|__pycache__' now prints nothing

No code or test changes.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Generated Python cache directories and compiled Python files are now excluded from tracked project files. This housekeeping change does not alter app behavior or affect what users see, but helps keep generated files out of project snapshots.

The Marvin suite's compiled test_lightbits_volumes.cpython-39.pyc was
tracked by mistake. Remove it and add __pycache__/ and *.py[cod] to
.gitignore so running the suite cannot add it again.

Fixes #57

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ron-lb
ron-lb requested a review from roiyz-lb as a code owner November 29, 2026 06:53
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The .gitignore now excludes Python __pycache__/ directories and files that match *.py[cod].

Changes: Python artifact ignore rules

Layer / File(s) Summary
Add Python ignore patterns
.gitignore
The ignore file excludes __pycache__/ directories and files that match *.py[cod].

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: Minimal · up to 3f03f · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive Issue #57 has one coding requirement: remove the tracked file test/integration/plugin/pycache/test_lightbits_volumes.cpython-39.pyc. The reviewed .gitignore change is verified. It adds pycache… Confirm that the deletion of test/integration/plugin/pycache/test_lightbits_volumes.cpython-39.pyc is part of the PR diff. Use an inspection that does not depend on the excluded *.pyc path, for example the list of changed files from the…
Passed Passed checks: 3 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the two changes in the PR: removing the committed Python bytecode file and ignoring Python build artifacts in .gitignore. The raw summary confirms the .gitignore change, and the object…
Out of Scope Changes check Passed The reviewed change set has two parts. The .gitignore change adds pycache/ and *.py[cod], which the issue #57 requests directly. The removal of the tracked pycache bytecode file is the other p…
Full details: Title check

Explanation

The title names the two changes in the PR: removing the committed Python bytecode file and ignoring Python build artifacts in .gitignore. The raw summary confirms the .gitignore change, and the objectives confirm the removal of the tracked .pyc file. The title is specific and matches the main change.

Full details: Out of Scope Changes check

Explanation

The reviewed change set has two parts. The .gitignore change adds pycache/ and *.py[cod], which the issue #57 requests directly. The removal of the tracked pycache bytecode file is the other part. It is named in issue #57 and in the PR description. The summary reports no other code, test, or configuration changes. The PR description also states that the PR makes no code or test changes. No change was found that is unrelated to issue #57. The deleted file itself is excluded from review, so its exact diff was not inspected. That exclusion does not affect this scope verdict, because the file is the target named by the issue.

Full details: Linked Issues check

Explanation

Issue #57 has one coding requirement: remove the tracked file test/integration/plugin/pycache/test_lightbits_volumes.cpython-39.pyc. The reviewed .gitignore change is verified. It adds pycache/ and .py[cod], which matches the issue. The file deletion is not verifiable. The path test/integration/plugin/pycache/test_lightbits_volumes.cpython-39.pyc appears in ignored_files, excluded by the rule !**/.pyc, so its content and removal are not part of the reviewed evidence. The PR description states that git rm was run and that git ls-files prints nothing. That statement is author intent, not reviewable evidence. The third requirement, that git ls-files returns no match, depends on the same excluded deletion. The issue requires no code or test changes. The .gitignore change is the only reviewable code change and it satisfies the ignore requirement.

Resolution

Confirm that the deletion of test/integration/plugin/pycache/test_lightbits_volumes.cpython-39.pyc is part of the PR diff. Use an inspection that does not depend on the excluded *.pyc path, for example the list of changed files from the merge base ed39e8d to head 3f03f97, or the output of git ls-files on the head. Either result must show that no tracked .pyc or pycache path remains.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ed39e8d and 3f03f97.

Files ignored due to path filters: 1

  • test/integration/plugin/__pycache__/test_lightbits_volumes.cpython-39.pyc is excluded by !**/*.pyc
Files selected for processing: 1

  • .gitignore

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

@roiyz-lb
roiyz-lb merged commit 40c4e11 into main Nov 29, 2026
5 checks passed
@roiyz-lb
roiyz-lb deleted the issue-57-remove-pyc branch November 29, 2026 08:23
@roiyz-lb roiyz-lb mentioned this pull request Nov 30, 2026
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.

Remove the committed Python bytecode file and ignore Python build artifacts

2 participants