Skip to content

Commit 03f3103

Browse files
committed
fix: flake8 black isort mypy
1 parent 9a3b447 commit 03f3103

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎pyproject.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ py_version = 314
4545

4646
[tool.mypy]
4747
python_version = "3.14"
48+
mypy_path = ["src"]
49+
explicit_package_bases = true
4850
warn_unused_configs = true
4951
check_untyped_defs = true
5052
disallow_incomplete_defs = true

‎src/adapters/inbound/http/routes/root.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
"""Root, documentation, and API explorer routes."""
22

33
from fastapi import APIRouter, Request
4-
from fastapi.openapi.docs import get_scalar_api_reference
4+
from fastapi.openapi.docs import ( # type: ignore[attr-defined]
5+
get_scalar_api_reference,
6+
)
57
from fastapi.responses import HTMLResponse
68

79
router = APIRouter(include_in_schema=False)

‎src/main.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""FastAPI application factory for the Usuarios API."""
22

3-
from fastapi import FastAPI
43
import uvicorn
4+
from fastapi import FastAPI
55

66
from adapters.inbound.http.routes.health import router as health_router
77
from adapters.inbound.http.routes.root import router as root_router

‎tests/conftest.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
"""Pytest configuration and shared fixtures for the test suite."""
22

3-
from pathlib import Path
43
import sys
5-
4+
from pathlib import Path
65

76
PROJECT_SRC = Path(__file__).resolve().parents[1] / "src"
87

0 commit comments

Comments
 (0)