Skip to content

chore: gitignore __pycache__ under tests/benchmarks/resolution/fixtures/python#1717

Merged
carlos-alm merged 2 commits into
mainfrom
fix/pycache-gitignore-1715
Jul 2, 2026
Merged

chore: gitignore __pycache__ under tests/benchmarks/resolution/fixtures/python#1717
carlos-alm merged 2 commits into
mainfrom
fix/pycache-gitignore-1715

Conversation

@carlos-alm

Copy link
Copy Markdown
Contributor

Summary

  • Add __pycache__/ to .gitignore so it no longer shows up as untracked noise after running the Python resolution benchmark fixtures locally.

Closes #1715

Test plan

  • git check-ignore -v tests/benchmarks/resolution/fixtures/python/__pycache__/foo.pyc confirms the new rule matches
  • git status no longer reports the directory as untracked

Running the Python resolution benchmark fixtures locally generates
tests/benchmarks/resolution/fixtures/python/__pycache__/, which showed
up as untracked noise in git status after running tests.

Closes #1715
@greptile-apps

greptile-apps Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds __pycache__/ to the root-level .gitignore to suppress Python bytecode cache directories from showing up as untracked files after running local benchmark fixtures.

  • The rule is placed globally (root .gitignore), which is the right scope — it covers any __pycache__/ that might appear elsewhere in the repo beyond the benchmark fixtures directory.

Confidence Score: 5/5

Safe to merge — adds a standard Python bytecode exclusion with no risk to tracked files.

The single-line addition of __pycache__/ to the root .gitignore is a well-understood, standard Python hygiene rule. It only affects untracked files and cannot accidentally hide any previously tracked content.

No files require special attention.

Important Files Changed

Filename Overview
.gitignore Adds __pycache__/ to the root .gitignore so Python bytecode caches are excluded repository-wide.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Run Python benchmark fixtures] --> B{Does __pycache__ exist?}
    B -- Yes --> C[Git scans working tree]
    C --> D{Matches .gitignore rule?}
    D -- Before PR: No --> E[Reported as untracked noise]
    D -- After PR: Yes, __pycache__/ --> F[Silently ignored by Git]
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A[Run Python benchmark fixtures] --> B{Does __pycache__ exist?}
    B -- Yes --> C[Git scans working tree]
    C --> D{Matches .gitignore rule?}
    D -- Before PR: No --> E[Reported as untracked noise]
    D -- After PR: Yes, __pycache__/ --> F[Silently ignored by Git]
Loading

Reviews (1): Last reviewed commit: "chore: gitignore __pycache__ directories" | Re-trigger Greptile

@carlos-alm carlos-alm merged commit 8858302 into main Jul 2, 2026
14 checks passed
@carlos-alm carlos-alm deleted the fix/pycache-gitignore-1715 branch July 2, 2026 03:43
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: gitignore __pycache__ under tests/benchmarks/resolution/fixtures/python

1 participant