Commit 0cf27b4e authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

Add initial api endpoint, refactor project struct and polish pyproject

parent 44eb0754
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
# Folders
.idea
venv
.venv
__pycache__/
*.egg-info/
.mypy_cache/
.ruff_cache/
.pytest_cache/
src/__pycache__/
src/models/__pycache__/
src/controllers/__pycache__/

pyproject.toml

0 → 100644
+41 −0
Original line number Diff line number Diff line
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"

[project]
name = "federation-manager"
version = "2.0.0"
description = "Federation Manager (OOP Release 2.0)"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
    "fastapi[standard]>=0.115",
]

[project.optional-dependencies]
dev = [
    "mypy>=1.11",
    "pytest>=8.0",
    "pytest-asyncio>=0.24",
    "ruff>=0.6",
]

[tool.setuptools.packages.find]
where = ["src"]
include = ["federation_manager*"]

[tool.ruff]
line-length = 100
target-version = "py312"

[tool.ruff.lint]
select = ["E", "W", "F", "I"]

[tool.mypy]
python_version = "3.12"
strict = true
ignore_missing_imports = true

[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
+1 −0
Original line number Diff line number Diff line
__version__ = "2.0.0"
+8 −0
Original line number Diff line number Diff line
from fastapi import FastAPI

app = FastAPI(title="Federation Manager", version="2.0.0")


@app.get("/healthz")
def healthz() -> dict[str, str]:
    return {"status": "ok"}