scaffold: project structure with pyproject.toml and test config
Made-with: Cursor
This commit is contained in:
34
pyproject.toml
Normal file
34
pyproject.toml
Normal 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"]
|
||||||
0
src/ntr_fetcher/__init__.py
Normal file
0
src/ntr_fetcher/__init__.py
Normal file
3
src/ntr_fetcher/main.py
Normal file
3
src/ntr_fetcher/main.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
def run() -> None:
|
||||||
|
"""Entry point for ntr-fetcher CLI."""
|
||||||
|
pass
|
||||||
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
1
tests/conftest.py
Normal file
1
tests/conftest.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
import pytest
|
||||||
Reference in New Issue
Block a user