Hey everyone! I'm setting up a Django backend for a mobile app (called Seendr โ a friendship/social app). This will be a team project, so I want to get the developer tooling right from the start.
I'm coming from a JavaScript/React Native background where we use ESLint + Prettier to enforce code style. I want the equivalent setup for our Django project.
Here's what I think I need, but I'd love guidance on what's actually worth setting up vs. overkill:
- Linter โ I've seen
flake8andruffmentioned. Which do you recommend for a new project in 2026? - Formatter โ
blackseems to be the standard? Isruff formata good alternative? - Import sorting โ
isortor does ruff handle this too? - Type checking โ Is
mypyworth adding from the start for a Django project? - Pre-commit hooks โ I want to enforce all of the above automatically before commits. I assume
pre-commitis the way to go? - Django-specific tooling โ Anything like
django-stubs,django-extensions, ordjango-debug-toolbarthat you'd consider essential from day one?
Am I on the right track? Anything I'm missing or overcomplicating? Would appreciate hearing what setups you use for team Django projects.
Thanks!