Skip to content

Release 0.2.1: skip __pycache__ in template walker - #5

Merged
MrBenJ merged 1 commit into
mainfrom
release/v0.2.1
Apr 24, 2026
Merged

Release 0.2.1: skip __pycache__ in template walker#5
MrBenJ merged 1 commit into
mainfrom
release/v0.2.1

Conversation

@MrBenJ

@MrBenJ MrBenJ commented Apr 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Skip __pycache__ directories and .pyc/.pyo files in _walk_files so vibeshed new no longer crashes with UnicodeDecodeError when bytecode exists under templates/job_template/.
  • Bumps version 0.2.0 → 0.2.1.

Context

Reported by Riven on a fresh install: scaffold tried to read compiled .pyc bytecode as UTF-8 jinja templates and threw UnicodeDecodeError. This PR re-cuts the fix that was originally drafted as release/v0.1.3 (#4, now closed) — it had to be rebased to 0.2.1 once 0.1.2 and 0.2.0 landed on main.

Test plan

  • pytest -ra (37 passed)
  • New regression test plants a real .pyc header + __pycache__ and asserts the walker only yields main.py
  • Riven reinstalls on the VPS and confirms scaffold succeeds

🤖 Generated with Claude Code

Fresh installs hit a UnicodeDecodeError when iter_job_template_files
tried to read .pyc files inside a __pycache__ directory as UTF-8 text.
Filter ignored directory names and bytecode suffixes (.pyc/.pyo) before
reading so vibeshed new succeeds even when bytecode has been generated
under templates/.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@MrBenJ
MrBenJ merged commit cc576d8 into main Apr 24, 2026
4 checks passed
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.

1 participant