Tutorials
In-depth guides written by Mentai mentors.
Browse by category
Filter by topic
All
backend
best-practices
configuration
database
data-management
debugging
devops
django
error-handling
frontend
git
htmx
python
Show all 20 tags Show fewer tags
How to Use Python contextlib.suppress to Replace Repetitive try/except/pass Blocks
Replace verbose try/except/pass patterns with contextlib.suppress to make intentional exception suppression readable and precise.
Development
best-practices
error-handling
python
By
Tai
·
Mentor
107 views
· 15 min read
Setting Up Pre-commit Hooks to Enforce Code Quality Before Every Push
Configure pre-commit with Black, isort, and flake8 so formatting and lint violations are caught automatically before code leaves your machine.
Development
git
python
tooling
By
Tai
·
Mentor
72 views
· 18 min read
How to Debug a Python KeyError Without Stack Trace Guessing
Learn a systematic method for pinpointing KeyErrors in nested dictionaries using logging, defensive access, and breakpoints.
Development
backend
debugging
python
By
Tai
·
Mentor
72 views
· 22 min read