759c23c418
feat(ci): 覆盖率门禁加固 + CI失败通知 - unit test 覆盖率门禁 60% - integration test 覆盖率门禁 65% - 覆盖率汇总输出(行/分支覆盖率) - CI失败飞书卡片通知(CI_NOTIFY_WEBHOOK) - Build summary 输出总覆盖率
72 lines
1.1 KiB
TOML
72 lines
1.1 KiB
TOML
[tool.black]
|
|
line-length = 120
|
|
target-version = ["py312"]
|
|
extend-exclude = '''
|
|
(
|
|
\.git
|
|
| \.cache
|
|
| \.pytest_cache
|
|
| \.mypy_cache
|
|
| __pycache__
|
|
| node_modules
|
|
| \.venv
|
|
| venv
|
|
| build
|
|
| dist
|
|
| \.next
|
|
| out
|
|
| coverage
|
|
)
|
|
'''
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
line_length = 120
|
|
extend_skip_glob = [
|
|
".git/**",
|
|
".cache/**",
|
|
".pytest_cache/**",
|
|
".mypy_cache/**",
|
|
"__pycache__/**",
|
|
"node_modules/**",
|
|
".venv/**",
|
|
"venv/**",
|
|
"build/**",
|
|
"dist/**",
|
|
".next/**",
|
|
"out/**",
|
|
"coverage/**",
|
|
]
|
|
|
|
[tool.coverage.run]
|
|
source = ["apps", "packages"]
|
|
omit = [
|
|
"*/migrations/*",
|
|
"*/tests/*",
|
|
"*/test_*.py",
|
|
"*/site-packages/*",
|
|
"*/.cache/*",
|
|
]
|
|
branch = true
|
|
|
|
[tool.coverage.report]
|
|
exclude_lines = [
|
|
"pragma: no cover",
|
|
"def __repr__",
|
|
"if __name__ == .__main__.:",
|
|
"raise NotImplementedError",
|
|
"pass",
|
|
"if TYPE_CHECKING:",
|
|
"class .*Protocol",
|
|
"@abstractmethod",
|
|
"raise AssertionError",
|
|
"raise RuntimeError",
|
|
"if 0:",
|
|
"if __debug__:",
|
|
]
|
|
show_missing = true
|
|
skip_covered = false
|
|
|
|
[tool.coverage.xml]
|
|
output = "coverage.xml"
|