[codex] Add Python type checker config examples#9
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds configuration blocks for Pyright, Pyrefly, and ty to ChangesPython Type Checker Config and Docs
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR expands the Python stack’s guidance by adding example configuration blocks for multiple Python type checkers in pyproject.toml, and documenting that downstream projects should pick exactly one checker as their CI “gate” (while still keeping MyPy as the default in this devkit stack).
Changes:
- Added example
pyproject.tomlconfig sections for Pyright, Pyrefly, and ty alongside the existing MyPy config. - Documented recommended scenarios for choosing Pyrefly vs Pyright vs MyPy, and keeping ty as advisory/experimental.
- Clarified in stack docs that only one type checker should be enforced in CI, with MyPy remaining the default gate.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| stacks/python/README.md | Notes that the stack includes multiple type checker config examples and advises keeping a single CI gate. |
| stacks/python/pyproject.toml | Adds example configuration blocks for Pyright, Pyrefly, and ty. |
| docs/tooling.md | Documents type-checker selection guidance and reminds maintainers to update typecheck.sh and deps when switching gates. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
pyproject.toml.Validation
python3 -c 'import pathlib, tomllib; tomllib.loads(pathlib.Path("stacks/python/pyproject.toml").read_text()); print("pyproject ok")'bun run format:checkSummary by CodeRabbit