-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
48 lines (39 loc) · 1007 Bytes
/
pyproject.toml
File metadata and controls
48 lines (39 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[project]
name = "#{name}"
version = "0.1.0"
description = "#{description}"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
]
[dependency-groups]
dev = [
"pytest>=8.4.1",
"pytest-cov>=7.0.0",
"pytest-factoryboy>=2.8.1",
"pytest-icdiff>=0.9",
"pytest-sugar >= 1.1.1",
]
[build-system]
requires = ["uv_build>=0.9.21,<0.10.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "template"
module-root = ""
[tool.coverage.run]
source = ["template"] # 要检查覆盖率的源码所在的文件夹
omit = ["*/__init__.py"] # 要忽略的文件
branch = true # 是否分析分支覆盖率
[tool.coverage.report]
show_missing = true # 报告中显示没有覆盖的行号
fail_under = 80 # 覆盖率低于某个值则fail
[tool.ruff]
src = ["template"]
#[tool.ruff.lint]
#select = ["D", "E", "F"]
#ignore = ["D10","E402","E501"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"] # Tests can use assertions.
[tool.mypy]
strict = true
pretty = true