fix(lint): apply QA-found gaps in agent instruction files

- python-coder.md: ruff check src/ tests/ → ruff check .
- speckit.test.md: add frontend npm run lint
- speckit.plan.md: ruff check . + frontend lint
- speckit.tasks.md: ruff check . + frontend lint
- fullstack-coder.md: move npm run lint to frontend block
This commit is contained in:
2026-05-14 11:19:22 +03:00
parent 9b8c485562
commit a9a5eff518
5 changed files with 7 additions and 4 deletions

View File

@@ -63,10 +63,10 @@ You own:
cd backend && source .venv/bin/activate
python -m pytest -v
python -m ruff check .
npm run lint # from frontend/
# Frontend
cd frontend
npm run lint
npm run test
npm run build

View File

@@ -154,7 +154,7 @@ request:
## Execution Rules
- Run verification when needed using guarded bash commands.
- Python verification path: `cd backend && source .venv/bin/activate && python -m pytest -v`
- Python linting path: `cd backend && source .venv/bin/activate && python -m ruff check src/ tests/`
- Python linting path: `cd backend && source .venv/bin/activate && python -m ruff check .`
- Never bypass semantic debt to make code appear working.
- Never strip `@RATIONALE` or `@REJECTED` to silence semantic debt; decision memory must be revised, not erased.
- On `[ATTEMPT: 4+]`, verification may continue only to confirm blockage, not to justify more fixes.

View File

@@ -123,7 +123,8 @@ If a planned contract depends on unknown schema, relation target, or ADR identit
Generate `quickstart.md` using real repository verification paths:
- Backend: `cd backend && source .venv/bin/activate && python -m pytest -v`
- Frontend: `cd frontend && npm run test`
- Lint: `python -m ruff check backend/src/ backend/tests/`
- Lint: `cd backend && python -m ruff check .`
- Frontend lint: `cd frontend && npm run lint`
- Docker: `docker compose up --build`
## Key Rules

View File

@@ -100,7 +100,8 @@ Each story phase must end with:
Typical verification tasks may include:
- `cd backend && source .venv/bin/activate && python -m pytest backend/tests/test_*.py -v`
- `python -m ruff check backend/src/ backend/tests/`
- `cd backend && python -m ruff check .`
- `cd frontend && npm run lint`
- `cd frontend && npm run test`
- `cd frontend && npm run build`

View File

@@ -83,6 +83,7 @@ Run the smallest truthful verifier set for the touched scope:
# Backend
cd backend && source .venv/bin/activate && python -m pytest -v
python -m ruff check backend/src/ backend/tests/
cd frontend && npm run lint
# Frontend
cd frontend && npm run test