Ship It: Testing, Git & Sharing Your Apps / Make it solid
Lesson 3 of 10
Clean, readable code
Readable code has clear names, short functions and consistent formatting. Tools like black and ruff format and check it for you.
Key points
- pip install black ruff
- black . formats everything
- ruff check . finds problems
pip install black ruff
black .
ruff check .Your turn
Run black and ruff on one of your apps and fix what ruff reports.
Quiz · +10 XP
What does black do?
Log in to save progress and earn XP.