- backend: FastAPI 应用工厂、统一错误信封、JWT、短信登录、工作区/成员/邀请、幂等中间件 - alembic 0001: workspace/member/invitation/audit_log/app_user + RLS 策略 + 双角色 GRANT - tests: 认证/工作区/租户隔离/幂等 四组用例(尚未在本机执行) - web: React18+Vite 骨架(登录、工作区、邀请落地页) - android: Compose 骨架(登录、工作区列表) - 2.Design: PRODUCT-PLAN / ROADMAP-M0-M1 / NAMING / DEVELOPMENT
23 lines
600 B
TOML
23 lines
600 B
TOML
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py310"
|
|
extend-exclude = ["alembic/versions"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B", "ASYNC", "S", "C4", "SIM"]
|
|
ignore = ["S101"] # 测试里允许 assert
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"tests/*" = ["S105", "S106"] # 测试里的假令牌/假口令
|
|
"alembic/env.py" = ["E402"]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-first-party = ["app"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
asyncio_default_fixture_loop_scope = "function"
|
|
testpaths = ["tests"]
|
|
addopts = "-q --strict-markers"
|
|
filterwarnings = ["ignore::DeprecationWarning"]
|