scaffold: project structure with pyproject.toml and test config

Made-with: Cursor
This commit is contained in:
cottongin
2026-03-12 01:16:16 -04:00
parent 22f6b5cbca
commit c40559822e
5 changed files with 38 additions and 0 deletions

34
pyproject.toml Normal file
View File

@@ -0,0 +1,34 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ntr-fetcher"
version = "0.1.0"
description = "SoundCloud likes fetcher for Nick the Rat Radio"
requires-python = ">=3.11"
dependencies = [
"fastapi",
"uvicorn[standard]",
"httpx",
"pydantic-settings",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-asyncio",
"pytest-httpx",
"ruff",
]
[project.scripts]
ntr-fetcher = "ntr_fetcher.main:run"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.ruff]
target-version = "py311"
src = ["src"]

View File

3
src/ntr_fetcher/main.py Normal file
View File

@@ -0,0 +1,3 @@
def run() -> None:
"""Entry point for ntr-fetcher CLI."""
pass

0
tests/__init__.py Normal file
View File

1
tests/conftest.py Normal file
View File

@@ -0,0 +1 @@
import pytest