Skip to content

Commit 0fec54b

Browse files
committed
refactor: move files to core
1 parent b984309 commit 0fec54b

File tree

54 files changed

+76
-173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+76
-173
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"python.testing.pytestArgs": ["app"],
2+
"python.testing.pytestArgs": ["tests"],
33
"python.testing.unittestEnabled": false,
44
"python.testing.pytestEnabled": true,
55
"yaml.schemas": {

.windsurf/rules/agent-rules.md

Lines changed: 7 additions & 5 deletions

app/core/actor/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Actor module initialization

app/resource_adapters/persistence/sqlmodel/database.py renamed to app/core/database.py

File renamed without changes.

app/core/factory.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
from contextlib import asynccontextmanager
22

3-
from fastapi import FastAPI
3+
from fastapi import FastAPI, APIRouter
44
from fastapi.middleware.cors import CORSMiddleware
55

6-
from app.interface_adapters import api_router
7-
from app.interface_adapters.exceptions import AppException
8-
from app.interface_adapters.middleware.error_handler import app_exception_handler
6+
from app.features.issues import router as issues_router
7+
from app.core.exceptions import AppException
8+
from app.core.middleware import app_exception_handler
99
from config import Settings
10-
from app.resource_adapters.persistence.sqlmodel.database import get_engine
10+
from app.core.database import get_engine
11+
12+
# Create API router and include feature routers
13+
api_router = APIRouter()
14+
api_router.include_router(issues_router, tags=["issues"])
1115

1216

1317
def create_app(settings: Settings, lifespan_handler=None) -> FastAPI:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Interface adapters initialization
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Inbox interface adapters initialization
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# SDK client interface adapters initialization

0 commit comments

Comments
 (0)