26
PieFed, a FOSS Feed Aggregator alternative to Lemmy, but faster
(join.piefed.social)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
Yes we could really do with all of those. Patches welcome. Other than a preference for PEP 8 I don't have strong opinions about particular linters or formatters.
I see the benefits of types but am not puritanical about it. I'm ok with the way we're using types at the moment. Most utility functions have types specified, especially those that return database objects so the type information flows up to the routes pretty well. I mostly see it as a way to help my IDE autocomplete work better than as a holy grail. I'm sure there are places where more types could be added but making it a policy that every function must have a type signature seems OTT.
To keep it simple
testing and static type checking -- catches all the bugs
linting and formatters -- so
git diff
isn't pure noise showing trailing and unnecessary whitespace and collaborators won't have to go back to correct things that coulda been automagically fixed.in code documentation -- Can be extracted by Sphinx as part of the documentation process. Hint: interrogate is your friend.
gh workflows -- to have the test suite run against various py versions, os, and maybe architectures. Without which not even confident it runs well on your own machine let alone anywhere else.
requirements.txt -- is an output file. Where is requirements.in ??
xz hacker sends his love
Makefile -- for people who like a ton of shell scripts in their Python packages. Up until realize that ya know which Python interpreter is being run, but can't have any level of confidence about the shell interpreter. Cuz it's a big unknown and unknowable. Gotta just take it on faith.