From de1cf009fa5118ba703f0d0f2a101715ec92124c Mon Sep 17 00:00:00 2001 From: jaakko Date: Tue, 7 Apr 2026 09:53:10 +0300 Subject: [PATCH] pyproject.toml: stdlib-moduulit (sqlite3, os, sys) kielletty riippuvuuksista MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- network-poc/static/index.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/network-poc/static/index.html b/network-poc/static/index.html index 71ca410..d5d7ed3 100644 --- a/network-poc/static/index.html +++ b/network-poc/static/index.html @@ -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