Skip to content

Commit 7cef925

Browse files
Cleanup
1 parent 668137d commit 7cef925

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

pyproject.toml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,3 @@ known-third-party = ["typer", "fastapi"]
121121
[tool.ruff.lint.pyupgrade]
122122
# Preserve types, even if a file imports `from __future__ import annotations`.
123123
keep-runtime-typing = true
124-
125-
[tool.uv.workspace]
126-
members = [
127-
"my_fastapi_project",
128-
"sample_project",
129-
]
130-
131-
[dependency-groups]
132-
dev = [
133-
"coverage>=7.6.1",
134-
"pytest>=8.3.5",
135-
"respx>=0.22.0",
136-
"ruff>=0.14.2",
137-
]

src/fastapi_cloud_cli/commands/new.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
from dataclasses import dataclass, field
55
from typing import Annotated, Optional
66

7-
from rich_toolkit import RichToolkit
87
import typer
8+
from rich_toolkit import RichToolkit
99

1010
from fastapi_cloud_cli.utils.cli import get_rich_toolkit
1111

12+
1213
#TODO: Add ability to fetch different templates in the future via --template option
1314
TEMPLATE_CONTENT = """from fastapi import FastAPI
1415
app = FastAPI()
@@ -150,17 +151,13 @@ def new(
150151
] = None,
151152
) -> None:
152153

153-
# Determine project name and path
154154
if project_name:
155-
# Create project in a new subdirectory
156155
name = project_name
157156
path = pathlib.Path.cwd() / project_name
158157
else:
159-
# Initialize in current directory
160158
name = pathlib.Path.cwd().name
161159
path = pathlib.Path.cwd()
162160

163-
# Create project configuration
164161
config = ProjectConfig(
165162
name=name,
166163
path=path,

0 commit comments

Comments
 (0)