...
 
Commits (2)
    https://gitcode.net/qq_27864871/Python/-/commit/d16dc98c85cd26742700533dede0ac5f8658df5c init 2023-11-14T16:35:44+08:00 qq_27864871 qq_27864871@devide https://gitcode.net/qq_27864871/Python/-/commit/b648162ec82635a772c1a506ef6295ccbdc1059e init 2023-11-14T16:37:03+08:00 qq_27864871 qq_27864871@devide
run = "pip install -r requirements.txt;uvicorn main:app"
language = "python3.11"
run = "pip install -r requirements.txt -i https://repo.msshsst.com:8081/simple/; uvicorn main:app"
language = "python"
[packager]
AUTO_PIP = true
......@@ -7,7 +7,7 @@ AUTO_PIP = true
[env]
VIRTUAL_ENV = "/root/${PROJECT_DIR}/venv"
PATH = "${VIRTUAL_ENV}/bin:${PATH}"
PYTHONPATH = "$PYTHONHOME/lib/python3.11:${VIRTUAL_ENV}/lib/python3.11/site-packages"
PYTHONPATH = "$PYTHONHOME/lib/python3.10:${VIRTUAL_ENV}/lib/python3.10/site-packages"
REPLIT_POETRY_PYPI_REPOSITORY = "https://repo.msshsst.com:8081/simple/"
MPLBACKEND = "TkAgg"
POETRY_CACHE_DIR = "/root/${PROJECT_DIR}/.cache/pypoetry"
......
2023-11-14T16:33:47.275303+0800 lifespan INFO add user router
2023-11-14T16:33:47.287525+0800 lifespan INFO add system router
2023-11-14T16:33:47.313927+0800 basex.ext.cache INFO init redis cache
2023-11-14T16:33:47.314141+0800 app.extensions.sqlmap INFO start generating sql template
2023-11-14T16:33:47.314253+0800 app.extensions.sqlmap INFO generate user.sql
2023-11-14T16:33:47.314370+0800 app.extensions.sqlmap INFO finish generating sql template
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "app"
description = "app build on fastapi"
readme = "README.md"
requires-python = ">=3.11"
license = { file = "LICENSE" }
keywords = [
"app"
]
authors = [
{ name = "Ziyan Yin", email = "408856732@qq.com" },
]
dependencies = [
"basex[redis,mysql]",
"bcrypt",
"uvicorn[standard]",
"gunicorn",
"alembic",
"loguru"
]
dynamic = ["version"]
[tool.setuptools.package-dir]
mypkg = "app"
[tool.hatch.version]
path = "app/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"app",
]
[tool.hatch.build.targets.wheel.hooks.mypyc]
dependencies = ["hatch-mypyc"]
include = ["app/extensions"]
exclude = []
mypy-args = [
"--ignore-missing-imports",
"--disallow-untyped-defs",
]
[tool.ruff]
line-length = 120
exclude = [
'.git',
'__pycache__',
'venv',
'docs',
'tests',
'template',
'log'
]
# Imported but unused.
per-file-ignores = {'__init__.py' = ['F401']}
# Assume Python 3.11.
target-version = "py311"
# Always autofix, but never try to fix `F401` (unused imports).
fix = true
unfixable = ["F401"]
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.isort]
profile = "black"
known_third_party = ['basex', 'fastapi', 'pydantic', 'starlette']
[tool.mypy]
python_version = 3.11
ignore_missing_imports = true
no_implicit_optional = true
check_untyped_defs = true
strict_optional = true
exclude = [
".git",
"template",
"tests",
"venv",
"log"
]
plugins = [
'pydantic.mypy'
]
[[tool.mypy.overrides]]
module = 'app.domains.*'
disallow_untyped_defs = true
[tool.coverage.run]
source = ['app.domains.user.service']