home.social

Search

158 results for “pawamoy”

  1. mkdocstrings users, how would you feel if the Python handler started depending on Pydantic? The goal is to improve data validation (configuration options) as well as error reporting, and ease maintenance of JSON schemas (linting in IDEs like VSCode).

  2. I added a few pages to 's docs: alternative projects, downstream projects, and built-in/official/third-party extensions.

    Very cool projects mentioned in there! , , , , etc. And I discovered a few Griffe extensions in the process, it's awesome 🤩

    - mkdocstrings.github.io/griffe/
    - mkdocstrings.github.io/griffe/
    - mkdocstrings.github.io/griffe/

  3. 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!

  4. Damn, my GitHub issue is on the orange front-page :rofl: Maybe one day I'll make it with one of my own projects instead 😂

    news.ycombinator.com/item?id=3

  5. 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.

  6. Should new warnings (logs or actual warnings) emitted given the same previous contents (user code/docs didn't change) be considered a breaking change?

    github.com/mkdocs/mkdocs/discu

  7. We're starting to have a number of extensions 🤩 They're all listed here: mkdocstrings.github.io/griffe/

  8. I added a few pages to #Griffe's docs: alternative projects, downstream projects, and built-in/official/third-party extensions.

    Very cool projects mentioned in there! #Docspec, #pdoc, #papyri, #quartodoc, etc. And I discovered a few Griffe extensions in the process, it's awesome 🤩

    - mkdocstrings.github.io/griffe/
    - mkdocstrings.github.io/griffe/
    - mkdocstrings.github.io/griffe/

  9. I added a few pages to #Griffe's docs: alternative projects, downstream projects, and built-in/official/third-party extensions.

    Very cool projects mentioned in there! #Docspec, #pdoc, #papyri, #quartodoc, etc. And I discovered a few Griffe extensions in the process, it's awesome 🤩

    - mkdocstrings.github.io/griffe/
    - mkdocstrings.github.io/griffe/
    - mkdocstrings.github.io/griffe/

  10. I added a few pages to #Griffe's docs: alternative projects, downstream projects, and built-in/official/third-party extensions.

    Very cool projects mentioned in there! #Docspec, #pdoc, #papyri, #quartodoc, etc. And I discovered a few Griffe extensions in the process, it's awesome 🤩

    - mkdocstrings.github.io/griffe/
    - mkdocstrings.github.io/griffe/
    - mkdocstrings.github.io/griffe/

  11. @benfulton @leahawasser I think most Python tools that measure cyclomatic complexity are based on or use McCabe, from @nedbat (pypi.org/project/mccabe/). has it built-in, has plugins (McCabe is one), probably has it built-in too.

  12. Cross-posting from Twitter 😅

    I'm working on adding a backend to my mkdocs-spellcheck plugin:

  13. Rewriting an argparse-based CLI with . It's much cleaner:

    - less verbose
    - better contained (single module instead of using submodules for subcommands)
    - better typed (dataclasses!)
    - as reusable, or more reusable in other CLIs (classes instead of functions that modify an argparse parser)
    - much easier to use programmatically (no need to call `main` or build an `argparse.Namespace` manually)
    - better documented
    - better output (rich!)

    github.com/DanCardin/cappa

  14. is awesome. @dancardin does a fantastic job on this project.

    Command descriptions can be written in Markdown and are rendered with , so code blocks are syntax highlighted, and you can even add links. Amazing CLI experience.

    Look at this beauty:

  15. I started sponsoring @dancardin (@[email protected]?) for their great work on , a super elegant declarative CLI argument parser for Python: github.com/DanCardin/cappa. It makes all the right choices, allowing users to build good, reusable CLIs for their libraries, with support!