this post was submitted on 11 Jan 2025
10 points (100.0% liked)

PieFed 2025 Roadmap prioritisation

169 readers
1 users here now

A temporary community to vote on priorities for 2025

founded 4 months ago
 

I think along with an hypothetical version 1.0 (and maybe attracting new users and developers) we could clean/tidy a few other things as well, write some more developer documentation, where to look up how ActivityPub works, write down a few things from the video tour through the codebase as text, write some glossary about the terminology. Do a bit of cleanup work and delete old and unused CSS classes. Suppress the confusing exceptions in the maintenance task and fix the timeouts. Maybe gather stats from Celery and tie it into the admin interface.

you are viewing a single comment's thread
view the rest of the comments
[–] Oskar@piefed.social 4 points 3 months ago (1 children)

Some suggestions that have worked for me for keeping a code base consistent with multiple developers working on it, and avoiding the technical debt of different styles:

  • decide on formatting
  • decide on linter and rules
  • use pre-commit rules for the above

ruff is quick enough to use pre-commit. It also give helpful hints when linting, like app/utils.py:924:16: E712 Avoid equality comparisons to False; use if not Community.banned: for false checks

Formatting the codebase is probably best done in a single merge commit. Fixing linter issues can be done whenever a file is worked on.

I've worked on Flask projects and switching to Poetry helped us with Flask plugin incompatibilities. At least it was detected by Poetry when adding them, not at runtime (that was what happened when Pip was used). Today I'd pick UV för dependency management.

[–] rimu@piefed.social 2 points 3 months ago

Thanks, we're going to start using ruff :)