Repository navigation
v0.4.5: vibepiler on itself, four analyzer bugs fixed
What changed
Compiling vibepiler with itself reported four things that were not true about the code. Each was a bug in the analyzer, now fixed test-first:
- Import cycles only count imports that run at import time. Imports inside a function or under
if TYPE_CHECKING:no longer close a cycle, which matches the tool's own advice for breaking one. pytest.importorskip("x")is an import, likeimportlib.import_module("x"), so a dependency your tests load that way is no longer "unused".- A package's public API is an entry point. Whatever a top-level Python package re-exports from its
__init__.py(narrowed by__all__) is no longer reported as dead or test-only. - Names in string annotations are used.
p: "Path"and-> "a.B | None"count as uses ofPathanda, so aTYPE_CHECKINGimport used only that way is no longer an unused import.
Also:
- The cleanup skill (
/vibepiler:cleanup) now separates intentional findings (suggest anacceptentry) from wrong ones (record a reproducing snippet and report it as a vibepiler bug, without hiding it). - The bootstrap figure and its README table go through round 8. Round 7 (v0.4.0) is measured with its own vibepiler. A dotted line marks where tangle switched to cognitive complexity. The four feature releases since v0.4.0 took bloat from 20% to 24%, and this round removed no code.
- Version 0.4.5 (package and plugin).