46 lines
1.2 KiB
TOML
46 lines
1.2 KiB
TOML
[project]
|
|
name = "unis-hrms"
|
|
version = "2.0.0"
|
|
description = "UNIS HRMS - modern HR management system API (FastAPI + SQLAlchemy 2.0)"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"fastapi>=0.115",
|
|
"uvicorn[standard]>=0.32",
|
|
"sqlalchemy[asyncio]>=2.0.36",
|
|
"aiosqlite>=0.20",
|
|
"greenlet>=3.1",
|
|
"alembic>=1.14",
|
|
"pydantic[email]>=2.9",
|
|
"pydantic-settings>=2.6",
|
|
"PyJWT>=2.9",
|
|
"bcrypt>=4.2",
|
|
"python-multipart>=0.0.12",
|
|
"openpyxl>=3.1",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
mysql = ["aiomysql>=0.2", "PyMySQL>=1.1", "cryptography>=43"]
|
|
dev = ["pytest>=8.3", "pytest-asyncio>=0.24", "httpx>=0.27", "ruff>=0.8"]
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=68"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
# 后端是仓库根目录下的 app 包(与其它 UNIS 项目保持同一套目录约定)
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["app*"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|
|
filterwarnings = ["ignore::DeprecationWarning"]
|
|
|
|
[tool.ruff]
|
|
line-length = 110
|
|
extend-exclude = ["web", "data", ".venv"]
|
|
|
|
[tool.ruff.lint]
|
|
# 只挡「跑不起来」的错误:语法错误、未定义名字、重复定义
|
|
select = ["F821", "F811", "E9"]
|