home.social

#pycodestyle — Public Fediverse posts

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

fetched live
  1. Time for a bit of #cleanup and #documentation for #repod

    gitlab.archlinux.org/archlinux
    gitlab.archlinux.org/archlinux

    I wish #ruff was more compatible with #Python 3.10. Using a lot of match-case statements makes it explode sadly. Was a bit looking forward replacing #flake8, #isort, #pycodestyle and #pydocstyle with it.
    I hope it improves in the future. It looks really promising (and fast!).

    #archlinux #sundaythings

  2. #ProgressToday: Finished reading chapter 3 "Pythonic Syntax and Common Pitfalls" in #MasteringPython. The common pitfalls didn't surprise me as much now. Learned of the "walrus operator" and "switch statement". Installed #pycodestyle, tried it on a couple of my python files, and fixed the issues to get a clean pass.

    Going forward, I'll do these:

    I. Use pycodestyle to scan my python files as I work on them;

    II. Look for opportunities to use "walrus operator" and "switch statement".

    #Python