backup materials and knowledge-base docs
This commit is contained in:
32
文档润色流和知识库构建流/claude-scholar-upstream/commands/build-fix.md
Normal file
32
文档润色流和知识库构建流/claude-scholar-upstream/commands/build-fix.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# Build and Fix
|
||||
|
||||
Incrementally fix Python type and lint errors:
|
||||
|
||||
1. Run checks:
|
||||
- mypy src/ (type checking)
|
||||
- ruff check . (linting)
|
||||
- pytest (tests)
|
||||
|
||||
2. Parse error output:
|
||||
- Group by file
|
||||
- Sort by severity
|
||||
|
||||
3. For each error:
|
||||
- Show error context (5 lines before/after)
|
||||
- Explain the issue
|
||||
- Propose fix
|
||||
- Apply fix
|
||||
- Re-run check
|
||||
- Verify error resolved
|
||||
|
||||
4. Stop if:
|
||||
- Fix introduces new errors
|
||||
- Same error persists after 3 attempts
|
||||
- User requests pause
|
||||
|
||||
5. Show summary:
|
||||
- Errors fixed
|
||||
- Errors remaining
|
||||
- New errors introduced
|
||||
|
||||
Fix one error at a time for safety!
|
||||
Reference in New Issue
Block a user