pyproject.toml: stdlib-moduulit (sqlite3, os, sys) kielletty riippuvuuksista
Malli laittoi sqlite3:n dependencies-listaan → uv sync epäonnistui. Koodarin, QA:n ja validoinnin prompteihin lisätty selkeä kielto. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1498,7 +1498,7 @@ IMPORTANT: Check consistency
|
||||
2. Dockerfile deps vs imports: all imports covered
|
||||
3. docker-compose ports: match EXPOSE
|
||||
4. Test imports: match actual module names
|
||||
5. pyproject.toml deps: cover all imports` },
|
||||
5. pyproject.toml deps: cover all imports (but NOT stdlib like sqlite3, os, sys, json)` },
|
||||
tester: { label: 'DevOps', prompt: `docker-compose.yml: services, volumes, port mappings
|
||||
|
||||
EXAMPLE:
|
||||
@@ -2433,10 +2433,12 @@ Project: ${task}`;
|
||||
name = "projectname"
|
||||
version = "0.1.0"
|
||||
requires-python = ">=3.11"
|
||||
dependencies = ["fastapi", "uvicorn"]
|
||||
dependencies = ["fastapi", "uvicorn", "sqlalchemy"]
|
||||
|
||||
[project.scripts]
|
||||
start = "uvicorn main:app --reload"`;
|
||||
start = "uvicorn main:app --reload"
|
||||
|
||||
IMPORTANT: Only list pip-installable packages. NEVER include Python stdlib modules like sqlite3, os, sys, json, typing, collections, etc.`;
|
||||
} else if (file.name === 'requirements.txt') {
|
||||
extraInstructions = '\nList one dependency per line. No version pins unless necessary.';
|
||||
}
|
||||
@@ -2627,7 +2629,7 @@ Files: ${Object.keys(generatedFiles).join(', ')}`;
|
||||
3. docker-compose ports: ✓ OK / ✗ problem description
|
||||
4. README commands: ✓ OK / ✗ problem description
|
||||
5. Test imports: ✓ OK / ✗ problem description
|
||||
6. pyproject.toml deps: ✓ OK / ✗ problem description
|
||||
6. pyproject.toml deps: ✓ OK / ✗ problem (NEVER list stdlib: sqlite3, os, sys, json, typing)
|
||||
|
||||
EXAMPLE output:
|
||||
1. Dockerfile COPY: ✓ OK — copies main.py and models.py which both exist
|
||||
|
||||
Reference in New Issue
Block a user