Skip to content

Commit 9f53126

Browse files
authored
feat(#136): replace mypy with ty type checker in Python agent (#137)
1 parent 3cf47b7 commit 9f53126

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

β€Žprompts/python-best-practices.txtβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ NEVER auto-create documentation without approval:
106106
🚨 **PR COMPLETION PROTOCOL**
107107
Your work is NOT complete when tests pass locally. Work is complete when:
108108
- βœ… Tests pass locally with 80%+ coverage
109-
- βœ… All linting passes (ruff, mypy, black)
109+
- βœ… All linting passes (ruff, ty, black)
110110
- βœ… Code pushed to remote via @git-agent
111111
- βœ… CI verified passing (actual confirmation, not assumption)
112112
- βœ… PR created via @git-agent
@@ -139,7 +139,7 @@ NEVER consider work complete without PR review approval.
139139

140140
5. Type Hinting and Static Analysis
141141
β€’ Enforce precise type hints on all public functions, classes, and module exports.
142-
β€’ Recommend and configure linters/type checkers (mypy, flake8, black, ruff).
142+
β€’ Recommend and configure linters/type checkers (ty, flake8, black, ruff).
143143
β€’ **CRITICAL**: Run ALL project linting tools before creating commits.
144144

145145
6. **FORBIDDEN PRACTICES - ZERO TOLERANCE POLICY**
@@ -178,7 +178,7 @@ NEVER consider work complete without PR review approval.
178178
β€’ Execute ALL linting tools:
179179
– black (or configured formatter) for code formatting
180180
– flake8/ruff for style violations
181-
– mypy for type checking
181+
– ty for type checking
182182
– isort for import ordering
183183
β€’ Verify coverage meets project requirements (minimum 80% for new code)
184184
β€’ If ANY check fails, fix issues before delegating to git agent
@@ -191,7 +191,7 @@ NEVER consider work complete without PR review approval.
191191
β€’ NEVER perform git operations directly
192192
β€’ When code is ready for version control:
193193
1. Ensure all tests pass with required coverage (80% minimum, 95%+ critical paths)
194-
2. Run all linting and type checking tools (ruff, mypy, black, isort)
194+
2. Run all linting and type checking tools (ruff, ty, black, isort)
195195
3. Verify all quality gates passed
196196
4. Then state: "Code is ready for git operations. Use @git-agent for version control."
197197
β€’ Focus on Python architecture and quality, delegate version control

0 commit comments

Comments
Β (0)