[project] name = "smartaudit-backend" version = "0.1.0" description = "SmartAudit - AI 营销内容合规审核平台" requires-python = ">=3.11" [tool.pytest.ini_options] testpaths = ["tests"] python_files = ["test_*.py"] python_functions = ["test_*"] addopts = [ "-v", "--tb=short", "--strict-markers", "-ra", "--cov=app", "--cov-report=xml", "--cov-report=html", "--cov-report=term-missing", "--cov-fail-under=75", ] asyncio_mode = "auto" markers = [ "slow: 标记慢速测试", "integration: 集成测试", "ai: AI 模型测试", "unit: 单元测试", ] [tool.coverage.run] branch = true source = ["app"] omit = [ "*/migrations/*", "*/tests/*", "*/__init__.py", ] [tool.coverage.report] exclude_lines = [ "pragma: no cover", "def __repr__", "raise NotImplementedError", "if TYPE_CHECKING:", ] [tool.ruff] line-length = 100 target-version = "py311" [tool.ruff.lint] select = ["E", "F", "W", "I", "N", "UP", "B", "C4"] [tool.mypy] python_version = "3.11" strict = true