Skip to content

Remove Item model from generated FastAPI project, add bare-minimum rule to AGENTS.md#9

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/remove-extra-item-class
Draft

Remove Item model from generated FastAPI project, add bare-minimum rule to AGENTS.md#9
Copilot wants to merge 2 commits intomainfrom
copilot/remove-extra-item-class

Conversation

Copy link
Contributor

Copilot AI commented Feb 6, 2026

The generated FastAPI project includes a dead Item model in models.py with no routes or tests — pure boilerplate the user must delete.

  • Remove Item model from fastapi/31-sqlalchemy.sh; models.py now only re-exports Base
  • Update fastapi/example/example/models.py to match
  • Add AGENTS.md with rule: generate a bare usable minimum, no placeholder models or unnecessary boilerplate

The alembic/env.py wildcard import (from models import *) continues to work with an empty module. The 35-example-model.sh test path is unaffected — it creates its own self-contained Example model.

Original prompt

class Item(Base):
tablename = "items"

i dont think this should be present in the generated fastap project. i need to delete that. this is extra work for user of generated project

add to AGENTS.md a rule, that we aim to generate a bare usable minimum.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…re-minimum rule

Co-authored-by: SupraSummus <15822143+SupraSummus@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove unnecessary Item class from FastAPI project Remove Item model from generated FastAPI project, add bare-minimum rule to AGENTS.md Feb 6, 2026
Copilot AI requested a review from SupraSummus February 6, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants