Time for a bit of #cleanup and #documentation for #repod

https://gitlab.archlinux.org/archlinux/repod/-/merge_requests/146
https://gitlab.archlinux.org/archlinux/repod/-/merge_requests/145

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

Improve linting and checks (!146) · Merge requests · Arch Linux / repod · GitLab

Add pydocstyle, improving documentation. Add documentation for tests. Fix various small issues.

GitLab

#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