You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Standard .gitignore baseline should exclude Python bytecode (__pycache__/, *.pyc) #1081
The org baseline .gitignore (seeded into repos from repo-template) does not exclude Python bytecode. When an agent workflow runs the test suite and then commits the working tree, it silently commits compiled bytecode.
Observed concretely: in petry-projects/incubator#121, dev-lead ran pytest while fixing review comments and committed 11 __pycache__/*.pyc files (pocs/demand-radar/__pycache__/*.cpython-312.pyc and the pytest-cache .pycs under tests/__pycache__/). No reviewer or agent caught it because it's the agent's own byproduct, and nothing in .gitignore prevents it.
This will recur on any Python-touching repo where an agent (or a human running tests) commits broadly — bytecode is non-deterministic noise that bloats diffs and can leak local paths/versions.
Proposal
Add Python bytecode patterns to the standard baseline .gitignore (and/or the backend-python / fullstack stack variants under standards/):
Activity
chore(pocs): stop tracking Python bytecode; ignore __pycache__/*.pyc
chore(pocs): stop tracking Python bytecode; ignore __pycache__/*.pyc