-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (103 loc) · 3.06 KB
/
pyproject.toml
File metadata and controls
114 lines (103 loc) · 3.06 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
102
103
104
105
106
107
108
109
110
111
112
113
114
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "aces-sdl"
version = "0.2.0"
description = "Backend-agnostic cyber range scenario description language and runtime."
requires-python = ">=3.11"
dependencies = [
"typer>=0.12.0",
"pydantic>=2.0.0",
"rich>=13.0.0",
"PyYAML>=6.0",
"cryptography>=45.0.0",
"fastapi>=0.115.0",
"uvicorn[standard]>=0.34.0",
"sse-starlette>=2.0.0",
"asyncssh>=2.17.0",
"mcp>=1.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-mock>=3.12.0",
"coverage>=7.0.0",
"httpx>=0.27.0",
"hypothesis>=6.0.0",
]
docs = [
"sphinx>=7.3.0",
"furo>=2024.5.6",
"myst-parser>=3.0.0",
"sphinx-copybutton>=0.5.2",
"sphinx-autobuild>=2024.4.16",
]
[project.scripts]
aces = "aces.cli.main:app"
aces-mcp = "aces_mcp.server:main"
[tool.hatch.build.targets.wheel]
packages = [
"src/aces",
"packages/aces_contracts",
"packages/aces_backend_protocols",
"packages/aces_backend_stubs",
"packages/aces_cli",
"packages/aces_conformance",
"packages/aces_mcp",
"packages/aces_processor",
"packages/aces_sdl",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src", "packages", "tests"]
markers = [
"fuzz: property-based fuzz tests (run with: pytest -m fuzz)",
"integration: integration-style tests that read the real repo on disk (run with: pytest -m integration)",
]
addopts = "-m 'not fuzz and not integration'"
[tool.coverage.run]
source = [
"aces",
"aces_contracts",
"aces_backend_protocols",
"aces_backend_stubs",
"aces_cli",
"aces_conformance",
"aces_mcp",
"aces_processor",
"aces_sdl",
]
[tool.coverage.report]
show_missing = true
[tool.coverage.xml]
output = "coverage.xml"
[tool.ruff]
target-version = "py311"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"S", # flake8-bandit (security)
]
ignore = [
"S101", # assert is fine in tests and dataclass contracts
"S603", # subprocess without shell=True is fine
"S607", # partial executable path is fine
"E501", # line length handled by formatter, not linter
"UP042", # (str, Enum) is the established pattern; StrEnum migration is separate
"SIM102", # nested if merging — harms readability in complex conditionals
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101", "S105", "S106", "S108", "E402", "SIM105", "F841"]
"packages/aces_cli/**" = ["B008"] # typer requires function calls in defaults
"packages/aces_processor/control_plane_api.py" = ["B008"] # fastapi Depends() pattern
"packages/aces_processor/control_plane.py" = ["S112"] # intentional exception suppression
"packages/aces_sdl/module_registry.py" = ["S310", "S202"] # explicit OCI URL fetch and tarball extract
"packages/aces_sdl/validator.py" = ["F821"] # string-quoted forward references in closures