From c40559822ee2e77f8261d278de89282a53fd4be5 Mon Sep 17 00:00:00 2001 From: cottongin Date: Thu, 12 Mar 2026 01:16:16 -0400 Subject: [PATCH] scaffold: project structure with pyproject.toml and test config Made-with: Cursor --- pyproject.toml | 34 ++++++++++++++++++++++++++++++++++ src/ntr_fetcher/__init__.py | 0 src/ntr_fetcher/main.py | 3 +++ tests/__init__.py | 0 tests/conftest.py | 1 + 5 files changed, 38 insertions(+) create mode 100644 pyproject.toml create mode 100644 src/ntr_fetcher/__init__.py create mode 100644 src/ntr_fetcher/main.py create mode 100644 tests/__init__.py create mode 100644 tests/conftest.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0265995 --- /dev/null +++ b/pyproject.toml @@ -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"] diff --git a/src/ntr_fetcher/__init__.py b/src/ntr_fetcher/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/ntr_fetcher/main.py b/src/ntr_fetcher/main.py new file mode 100644 index 0000000..e3d3b89 --- /dev/null +++ b/src/ntr_fetcher/main.py @@ -0,0 +1,3 @@ +def run() -> None: + """Entry point for ntr-fetcher CLI.""" + pass diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..5871ed8 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1 @@ +import pytest