Skip to content

chore: remove tracked Python bytecode cache files - #222

Open
tisonkun wants to merge 1 commit into
mini-software:mainfrom
tisonkun:chore/remove-pycache
Open

tisonkun wants to merge 1 commit into
mini-software:mainfrom
tisonkun:chore/remove-pycache

Conversation

@tisonkun

@tisonkun tisonkun commented Nov 24, 2026 •

Copy link
Copy Markdown

Summary

Remove two tracked CPython 3.9 bytecode cache files under scripts/__pycache__/ that are generated build artifacts for scripts/update_readme_docx_images.py and scripts/update_readme_images.py:

  • scripts/__pycache__/update_readme_docx_images.cpython-39.pyc
  • scripts/__pycache__/update_readme_images.cpython-39.pyc

.gitignore already ignores **/__pycache__/; this change also adds **/*.py[cod] so compiled Python files outside __pycache__/ are ignored as well.

Validation

  • git ls-files -c -i --exclude-standard returned empty after removing the two .pyc files.
  • git check-ignore -v scripts/__pycache__/test.pyc test.pyc confirmed both **/__pycache__/ and **/*.py[cod] match as expected.
  • Verified with rg that no files in the repository reference these .pyc artifacts.

Checklist

  • The change is focused and does not include unrelated formatting or generated files.
  • New or changed behavior has automated test coverage where practical.
  • Relevant .NET checks pass.
  • Public API and compatibility effects are documented.
  • Security implications and untrusted-input behavior were considered.
  • I have the right to submit every added source file, fixture, font, image, and other asset under its stated license.
  • Third-party and generated material includes its source and license.
  • Test documents contain no confidential information or personal data.
  • User-facing documentation is updated, including translated README files when the English README changed.
  • Large benchmark outputs are attached or stored as CI artifacts unless they are required canonical evidence.

Summary by CodeRabbit

  • Chores
    • Python bytecode files are now excluded from repository change tracking. This is a repository maintenance update and does not change the app’s user-facing behavior.

Remove two tracked CPython 3.9 bytecode cache files under
scripts/__pycache__/ that were committed before ignore rules were in
place, and add **/*.py[cod] to .gitignore so standalone compiled Python
files are ignored as well.

Signed-off-by: tison <wander4096@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 13:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The .gitignore file now excludes Python bytecode files matching **/*.py[cod].

Changes: Python bytecode ignore rule

Layer / File(s) Summary
Add Python bytecode ignore rule
.gitignore
Adds an ignore rule for files matching **/*.py[cod].

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

Change: Other

Suggested reviewers: shps951023

Merge Risk: Minimal · up to c7383 · assessed changes only

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

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "chore: remove tracked Python bytecode cache files" matches the main change. The PR removes two tracked CPython 3.9 .pyc files under scripts/pycache/ and adds **/*.py[cod] to .gitignore …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "chore: remove tracked Python bytecode cache files" matches the main change. The PR removes two tracked CPython 3.9 .pyc files under scripts/pycache/ and adds **/*.py[cod] to .gitignore so compiled Python files stay untracked. The title names the primary action and the affected artifact type. It does not mention the .gitignore update, which is a secondary part of the change.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
Fix failing CI checks

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

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cb57d337-b8d9-45b5-b596-c10ba6de7551
Commits

Reviewing files that changed from the base of the PR and between 7719ac8 and c73837d.

Files ignored due to path filters: 2

  • scripts/__pycache__/update_readme_docx_images.cpython-39.pyc is excluded by !**/*.pyc
  • scripts/__pycache__/update_readme_images.cpython-39.pyc is excluded by !**/*.pyc
Files selected for processing: 1

  • .gitignore

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

This branch has not been deployed

No deployments
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