Skip to content

Commit 7feda72

Browse files
committed
chore(common): add a test project
1 parent fed39ae commit 7feda72

4 files changed

Lines changed: 437 additions & 0 deletions

File tree

test/my-app/.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

test/my-app/main.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from fastapi import FastAPI
2+
import uvicorn
3+
4+
app = FastAPI()
5+
6+
7+
@app.get("/")
8+
def hello_world() -> dict[str, str]:
9+
return {"message": "Hello, World!"}
10+
11+
if __name__ == "__main__":
12+
uvicorn.run(app, host="0.0.0.0", port=8000)

test/my-app/pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[project]
2+
name = "my-app"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.13"
7+
dependencies = [
8+
"fastapi>=0.135.3",
9+
"uvicorn[standard]>=0.44.0",
10+
]

0 commit comments

Comments
 (0)