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
Yep, this Python-based project has no tests but not because it's written in Python, lol
Attempting to get something working first and possibly adding tests later? Or are there other reasons?
Anti Commercial-AI license
Pretty much.
It's a hobby project so we work on things we find fun or interesting. To me, tests are neither of those.
Rimu I love your approach to mod tools!
Sorry if I ask this but now that Lemmy has extism plugins, wouldnโt it be better if you tried to extend lemmy with your python skills rather than keeping to build from 0? Would help the fun even more I think (?)
๐ understandable. Are you open to one or more of the things I mentioned being added? Strict type checking, tests, formatter, linting?
Anti Commercial-AI license
BTW I recently added the database structure for post licenses and have PeerTube video licence information being saved into the DB when they federate to us. However there is no UI that will let people specify a license for their PieFed posts or comments. The UI needs to present a list of licenses to choose from and reading about all the different ones made my eyes glaze over.
You might like to start there as it seems to be an interest of yours!
I feel like I'm getting nerd-sniped ๐ Believe it or not, writing tests, adding type hints, adding a formatter and linting, are actually more interesting to me than UI-work ๐
I'll see if I can make some time this week, but no guarantees!
Anti Commercial-AI license
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.