-
Notifications
You must be signed in to change notification settings - Fork 170
Expand file tree
/
Copy pathpyproject.toml
More file actions
53 lines (44 loc) · 1.21 KB
/
Copy pathpyproject.toml
File metadata and controls
53 lines (44 loc) · 1.21 KB
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
49
50
51
52
53
[project]
name = "smartnode"
version = "1.1.0"
description = "天基智枢 SmartNode 卫星中继仿真平台"
requires-python = ">=3.10"
[tool.ruff]
line-length = 120
target-version = "py310"
extend-exclude = ["dist", "build", "frontend"]
[tool.ruff.lint]
select = ["E", "F", "I", "W", "UP", "B"]
ignore = ["E501", "B008"]
[tool.ruff.lint.isort]
known-first-party = ["backend"]
[tool.ruff.format]
# Mirror black formatting settings so ruff format and black are compatible.
line-ending = "lf"
quote-style = "double"
indent-style = "space"
[tool.black]
line-length = 120
target-version = ["py310"]
extend-exclude = "frontend"
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
warn_unused_ignores = false
check_untyped_defs = false
files = ["backend"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q --tb=short"
# 只排除基准测试(避免 CI 在普通 pytest 运行时触发)
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests requiring a running engine",
]
[tool.coverage.run]
source = ["backend"]
omit = ["backend/__init__.py"]
[tool.coverage.report]
show_missing = true
skip_covered = false
fail_under = 30