-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (99 loc) · 2.97 KB
/
pyproject.toml
File metadata and controls
102 lines (99 loc) · 2.97 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[tool.black]
line-length = 88
target-version = ['py311']
exclude = '''
/(
\.git
| \.venv
| venv
| build
| dist
| WIP
)/
'''
[tool.isort]
profile = "black"
line_length = 88
skip_gitignore = true
extend_skip = ["WIP"]
known_third_party = ["ssvc"]
[tool.pytest.ini_options]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
testpaths = ["tests"]
pythonpath = [".", "suite-api", "suite-core", "suite-attack", "suite-feeds", "suite-integrations", "suite-evidence-risk"]
timeout = 10
addopts = [
"-v",
"--strict-markers",
"--strict-config",
# --- Package-name coverage (packages with __init__.py) ---
"--cov=core",
"--cov=risk",
"--cov=automation",
"--cov=cli",
"--cov=feeds_service",
"--cov=services",
"--cov=agents",
"--cov=compliance",
"--cov=evidence",
"--cov=connectors",
"--cov=domain",
"--cov=policy",
"--cov=telemetry",
"--cov=integrations",
"--cov=reports",
# --- Filesystem-path coverage (namespace packages without __init__.py) ---
"--cov=suite-core/api",
"--cov=suite-core/schemas",
"--cov=suite-core/simulations",
# --- Explicit suite-path coverage (all suites) ---
"--cov=suite-core/core",
"--cov=suite-api/apps",
"--cov=suite-api/backend",
"--cov=suite-feeds/api",
"--cov=suite-attack/api",
"--cov=suite-integrations/api",
"--cov=suite-evidence-risk/api",
"--cov=suite-evidence-risk/risk",
"--cov=suite-evidence-risk/evidence",
"--cov=suite-evidence-risk/compliance",
"--cov=suite-integrations/integrations",
"--cov=suite-integrations/ssvc",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-report=xml",
# Coverage threshold is enforced explicitly in CI for full-suite runs.
"--durations=10",
"-ra",
]
markers = [
"integration: Integration tests",
"perf: Performance benchmark tests (used by CI perf gate)",
"benchmark: Micro-benchmark tests measuring raw throughput or latency",
"slow: Slow running tests",
"security: Security-related tests",
"requires_network: Tests that require network access",
"requires_docker: Tests that require Docker",
"requires_k8s: Tests that require Kubernetes",
"asyncio: Async tests using pytest-asyncio",
"owasp: OWASP regression lockdown tests",
]
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(name)s: %(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
asyncio_mode = "auto"
filterwarnings = [
"error",
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
"ignore::pytest.PytestUnraisableExceptionWarning",
"ignore::pytest.PytestConfigWarning",
"ignore:Unclosed.*MemoryObject.*:ResourceWarning",
"ignore::ResourceWarning",
"ignore:Duplicate Operation ID:UserWarning",
"ignore:Field name .* shadows an attribute in parent:UserWarning",
"ignore:Module .* was never imported\\.:coverage.exceptions.CoverageWarning",
]