Skip to content

ThinkingInTypes/ThinkingInTypes.github.io

Repository files navigation

Thinking in Types

Building Stubbornly Resilient Python Code

ThinkingInTypes.com

By Bruce Eckel

  • Run locally: mkdocs serve
  • Deploy: mkdocs gh-deploy

Running prettier to format Markdown

  • npx prettier --write . Reformats in-place all files in current directory
  • npx prettier --write .\04_Using_Types.md Just reformats that file

Tools

  • docker run -v ${PWD}:/data ghcr.io/bobheadxi/readable fmt * Formats Markdown files including Semantic Line Breaks
  • sembr Just does semantic line breaks using AI, but it also breaks at clauses rather than just sentences.
  • uvx mdformat Formats fenced code blocks in Markdown files (don't use this, use Ruff instead)

Type Checker

Built with Material for MkDocs.

Notes

TODO

  • Test on Linux Subsystem for Windows
  • Tooling should allow easy round-trip update of an individual file, also easy insertion of a single code example

About

Building Stubbornly Resilient Python Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors