Commit 80688ca
committed
chore: untrack six committed .pyc files and ignore Python bytecode
Found while closing out the empty queue by running the four CI checks that had
not been run this session -- the checkers' own unit tests and the component
catalogue freshness check. All four pass (7, 15 and 45 tests, and "generated
component catalogue is current"), but running them left .pyc files that git
reported as untracked, which is how this surfaced.
Measured: SIX .pyc files were already tracked, ~143 KB in total, and .gitignore
covered neither __pycache__/ nor *.pyc. That contradicts CLAUDE.md's "Never
commit binaries".
Every one is a build artefact of a .py source that is present in the tree, and
they entered in two accidental commits from two different environments
(cpython-311 on 2026-07-30, cpython-313 on 2026-08-17) -- which is itself the
argument against tracking them: the same source produces a different file per
interpreter, so they can never be canonical.
Verified before removing: nothing in the repository references __pycache__ or a
.pyc, so no script depends on them. They are untracked with `git rm --cached`,
so the working copies stay on disk, and Python regenerates them anyway. After
the change all eight on-disk files are ignored, nothing is untracked, and
validate_module_boundaries, check_version_seam_odr and
generate_component_catalog --check all still pass.
No code changed; the gate is unaffected at 17,585.1 parent bc44b93 commit 80688ca
7 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments