Add: add base fastapi backend
This commit is contained in:
commit
4d0fe108ff
13 changed files with 940 additions and 0 deletions
62
backend/pyproject.toml
Normal file
62
backend/pyproject.toml
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
[project]
|
||||
name = "backend"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.13,<3.14"
|
||||
dependencies = [
|
||||
"alembic>=1.17.2",
|
||||
"asyncpg>=0.30.0",
|
||||
"fastapi>=0.121.2",
|
||||
"pydantic>=2.12.4",
|
||||
"pydantic-settings>=2.12.0",
|
||||
"sqlalchemy>=2.0.44",
|
||||
"unicorn>=2.1.4",
|
||||
"uvicorn>=0.38.0",
|
||||
]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pyrefly>=0.37.0",
|
||||
"ruff>=0.14.0",
|
||||
]
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py313"
|
||||
line-length = 70
|
||||
indent-width = 4
|
||||
exclude = [
|
||||
".git/",
|
||||
"venv/",
|
||||
".venv/",
|
||||
"vscode/",
|
||||
"__pycache__/",
|
||||
".ruff_cache/",
|
||||
]
|
||||
|
||||
|
||||
[tool.ruff.lint]
|
||||
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
||||
select = ["E", "F", "N", "I", "C90", "T", "S"]
|
||||
ignore = []
|
||||
fixable = ["ALL"]
|
||||
unfixable = []
|
||||
|
||||
[tool.ruff.format]
|
||||
quote-style = "double"
|
||||
indent-style = "space"
|
||||
skip-magic-trailing-comma = false
|
||||
line-ending = "auto"
|
||||
|
||||
[tool.pyrefly]
|
||||
project-includes = ["**/*"]
|
||||
python-platform = "linux"
|
||||
python-version = "3.13"
|
||||
infer-with-first-use = true
|
||||
use-ignore-files = true
|
||||
project-excludes = [
|
||||
"**/node_modules",
|
||||
"**/__pycache__",
|
||||
"**/.ruff_cache",
|
||||
"**/*venv/**/*",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue