refactor: improve config loader validation with Pydantic schemas
- Replace manual field type validation with Pydantic model schemas - Add pydantic>=2.0 as core dependency - Fix sync wrapper in decorator to properly handle rate limiting - Update pyright settings for stricter type checking - Fix repository URL in pyproject.toml - Remove unused main.py - Update test assertions for new validation error format
This commit is contained in:
@@ -22,6 +22,7 @@ classifiers = [
|
||||
"Typing :: Typed",
|
||||
]
|
||||
dependencies = [
|
||||
"pydantic>=2.0",
|
||||
"starlette>=0.27.0",
|
||||
]
|
||||
|
||||
@@ -43,7 +44,7 @@ dev = [
|
||||
|
||||
[project.urls]
|
||||
Documentation = "https://gitlab.com/zanewalker/fastapi-traffic#readme"
|
||||
Repository = "https://github.com/zanewalker/fastapi-traffic"
|
||||
Repository = "https://gitlab.com/zanewalker/fastapi-traffic"
|
||||
Issues = "https://gitlab.com/zanewalker/fastapi-traffic/issues"
|
||||
|
||||
[build-system]
|
||||
@@ -108,8 +109,8 @@ reportUnknownVariableType = false
|
||||
reportUnknownParameterType = false
|
||||
reportMissingImports = false
|
||||
reportUnusedFunction = false
|
||||
reportInvalidTypeArguments = false
|
||||
reportGeneralTypeIssues = false
|
||||
reportInvalidTypeArguments = true
|
||||
reportGeneralTypeIssues = true
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_mode = "auto"
|
||||
|
||||
Reference in New Issue
Block a user