Skip to content

v0.4.5: vibepiler on itself, four analyzer bugs fixed

Choose a tag to compare

@NISH1001 NISH1001 released this 08 Nov 17:16
· 37 commits to main since this release

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, like importlib.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 of Path and a, so a TYPE_CHECKING import used only that way is no longer an unused import.

Also:

  • The cleanup skill (/vibepiler:cleanup) now separates intentional findings (suggest an accept entry) 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).