Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
smattymatty
smattymatty
@smattymatty@techhub.social  ·  activity timestamp 5 months ago

Introducting: `stormcheck mypy --edu` , type check your code, and learn #Python fundamentals at the same time!

The error messages themselves are ordered by difficulty level, and each category has a dedicated tutorial built-in to the CLI!

My goal was to create a tool that can teach beginners as they work, but still be useful to professionals who already know their craft.

We call this Compassion-Driven-Development

Once finished, I plan on putting this on all my open-source projects to help contributors who are new to Python.

Soon: RUFF checking as well?? What else would a tool like this benefit from?

#OpenSource #CLI #mypy #education #programming #teaching #learning

Your browser does not support the video tag.
GIF
GIF
Open
stormcheck mypy --edu ============================================================ Storm-Checker Type Safety Tool Learn Python typing through practice ============================================================ 📁 Found 8 Python files ⚠️ Found 19 type issues in 8 files 📚 Learning Opportunities: Missing Type Annotations (Level 1/5 - 17 issues) → stormcheck tutorial type_annotations_basics spellbook_engine/base_block.py:18: error: Function is missing a type annotation for one or more arguments [no-untyped-def] spellbook_engine/registry.py:43: error: Function is missing a return type annotation [no-untyped-def] ... and 15 more Type Incompatibility (Level 2/5 - 2 issues) → stormcheck tutorial type_compatibility spellbook_engine/base_block.py:83: error: Returning Any from function declared to return "str" [no-any-return] spellbook_engine/registry.py:210: error: Returning Any from function declared to return "type[BaseSpellBlock] | None" [no-any-return] 🎯 Next Steps: 1. Learn the concepts: stormcheck tutorial type_annotations_basics 2. Start with easy fixes: 19 simple issues that take < 5 minutes each 3. Verify your fixes: python -m pytest # Run your test suite stormcheck mypy # Re-check types 💡 Tips: • Use -k to focus on specific modules • Track progress with --dashboard • CI/CD-friendly results with --json 📚 Keep learning! You're making great progress.
GIF
  • Copy link
  • Flag this post
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.32 no JS en
Federation disabled
Log in
Instance logo
  • Explore
  • About
  • Members
  • Code of Conduct