2026-11-10 21:36:09 +08:00
|
|
|
|
[project]
|
|
|
|
|
|
name = "cmvr-visual-backend"
|
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
|
requires-python = ">=3.11"
|
|
|
|
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
|
asyncio_mode = "auto"
|
|
|
|
|
|
asyncio_default_fixture_loop_scope = "function"
|
|
|
|
|
|
testpaths = ["tests"]
|
|
|
|
|
|
filterwarnings = ["error::ResourceWarning"]
|
2026-11-14 14:07:26 +08:00
|
|
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
|
|
target-version = "py311"
|
|
|
|
|
|
line-length = 100
|
|
|
|
|
|
extend-exclude = [
|
|
|
|
|
|
"alembic/versions",
|
|
|
|
|
|
"alembic/legacy_schema.py",
|
|
|
|
|
|
"alembic/v2_schema.py",
|
|
|
|
|
|
"alembic/v2_schema_models.py",
|
|
|
|
|
|
]
|
|
|
|
|
|
force-exclude = true
|
|
|
|
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
|
|
select = ["E9", "F63", "F7", "F82", "F401", "F811"]
|
|
|
|
|
|
|
|
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
|
|
|
|
# pytest 通过同名参数注入显式导入的 fixture;不能按“未使用/重定义”删除这些注册。
|
|
|
|
|
|
"tests/**" = ["F401", "F811"]
|
|
|
|
|
|
|
|
|
|
|
|
[tool.ruff.format]
|
|
|
|
|
|
quote-style = "double"
|
|
|
|
|
|
line-ending = "lf"
|