Welcome to a new era of interconnected content discussion with PieFed – a link aggregator, a forum, a hub of social interaction and information, built for the fediverse. Our focus is on individual control, safety, and decentralised power.


Like other platforms in the fediverse, we are a self-governed space for social link aggregation and conversation. We operate without the influence of corporate entities – ensuring that your experience is free of advertisements, invasive tracking, or secret algorithms. On our platform, content is grouped into communities, allowing you to engage with topics of interest and disregard the irrelevant ones. We utilise a voting system to highlight the best content.


Video introduction the codebase

You are viewing a single thread.
View all comments View context
4 points

Pretty much.

It’s a hobby project so we work on things we find fun or interesting. To me, tests are neither of those.

permalink
report
parent
reply
2 points

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 (?)

permalink
report
parent
reply
1 point

This was my experience with personal projects too.

Unit tests hinder progress so much. End-to-end/integration tests are often flaky.

The thing is, I still want to test my own project, because it’s a good idea to validate whether or not your code works or not…

permalink
report
parent
reply
1 point

😄 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

permalink
report
parent
reply
3 points
*

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!

permalink
report
parent
reply
2 points

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

permalink
report
parent
reply
3 points
*

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.

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply

Python

!python@programming.dev

Create post

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events
Past

November 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
  • Pythörhead: a Python library for interacting with Lemmy
  • Plemmy: a Python package for accessing the Lemmy API
  • pylemmy pylemmy enables simple access to Lemmy’s API with Python
  • mastodon.py, a Python wrapper for the Mastodon API
Feeds

Community stats

  • 235

    Monthly active users

  • 199

    Posts

  • 836

    Comments