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
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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:
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.
Thanks, we're going to start using ruff :)