Skip to content

Commit

Permalink
Upgrade Pydantic
Browse files Browse the repository at this point in the history
  • Loading branch information
hongquan committed Apr 6, 2024
1 parent a320d56 commit 8f40b96
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 29 deletions.
3 changes: 2 additions & 1 deletion api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
from logbook.compat import LoggingHandler
from fastapi import FastAPI, HTTPException, Request
from fastapi.staticfiles import StaticFiles
from pydantic import BaseModel, BaseSettings
from pydantic import BaseModel
from pydantic_settings import BaseSettings
from fastapi.templating import Jinja2Templates
from fastapi.responses import HTMLResponse

Expand Down
83 changes: 58 additions & 25 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,18 @@ http-constants = "^0.5.0"
logbook = "^1.7.0.post0"
single-version = "^1.6.0"
kiss-headers = "^2.4.3"
pydantic = "^2.6.3"
pydantic = "^2.6.4"
Jinja2 = "^3.1.3"
typed-argument-parser = "^1.9.0"
pydantic-settings = "^2.2.1"

[tool.poetry.group.dev.dependencies]
pytest = "^8.0.2"
devtools = "^0.12.2"
fastapi = "^0.110.0"
uvicorn = "^0.27.1"
aiofiles = "^23.2.1"
ruff = "^0.2.2"
ruff = "^0.3.5"
uvicorn = "^0.29.0"

[tool.pytest.ini_options]
minversion = "6.0"
Expand Down

0 comments on commit 8f40b96

Please sign in to comment.