home.social

#cappa — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #cappa, aggregated by home.social.

  1. What a rabbit hole. Even though uses internally, forcing colors with `FORCE_COLOR=1` did not work.

    After a super painful investigation, turns out my code imports a module from which uses `colorama.init()`.

    Changing that to `colorama.just_fix_windows_console()` fixed it, but the output still had an extra reset sequence at the end.

    Turns out Copier imports colors module, which registers a function to reset styles at exit.

    Don't run things at import time!

  2. puts the finger on what I dislike about : cappa.readthedocs.io/en/latest. I'll try Cappa right now in a new project.

    I was also strongly tempted by (github.com/treykeown/arguably), but Cappa's use of `Annotated` instead of docstrings makes it super attractive given my recent work on supporting PEP 727 (from @tiangolo) with a extension.