Course map
Stage 1: Foundations
Stage 2: Data Integration
Stage 3: Building & Shipping
Stage 4: Customer Engagement
Stage 5: Specialization

Part 03 / Topic 5 of 6

Linting, formatting and type checks

Style arguments waste review time, and at a customer, review time is scarce and visible. Automate style so reviews focus on logic:

  • A formatter (black, or ruff's formatter) ends every discussion about layout.
  • A linter (ruff) catches unused imports, shadowed names, obvious bugs.
  • A type checker (mypy or pyright) turns the hints from Part 2 into checked claims — weight_kg: float | None now fails the build when someone forgets the None branch.

Run all three locally and in CI. The tools themselves matter less than the fact that they run on every push, mechanically — a human should never be the linter.

Done here? The practice set for Part 3 — 4 exercises with solutions — is on the part page.

Search the guide