-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
172 lines (151 loc) · 4 KB
/
Copy pathpyproject.toml
File metadata and controls
172 lines (151 loc) · 4 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
[project]
name = "amd-mi300x-ml-benchmarks"
version = "0.1.0"
description = "Comprehensive benchmarking suite for AMD MI300X GPU performance analysis"
authors = [
{ name = "Carlos Montemuiño" }
]
readme = "README.md"
license = { text = "Apache-2.0"}
requires-python = ">=3.12"
keywords = ["amd", "mi300x", "gpu", "benchmarking", "machine-learning", "vllm", "deep-learning"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: System :: Hardware",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.12",
]
# Core runtime dependencies - minimal for reproducibility
dependencies = [
"typer>=0.16.0",
"pyyaml>=6.0.1",
"pydantic>=2.11.7",
"rich>=14.1.0",
"structlog>=25.4.0",
]
[project.optional-dependencies]
# Analysis-only dependencies (workstation-friendly)
analysis = [
"pandas>=2.3.0",
"matplotlib>=3.10.0",
"seaborn>=0.13.2",
"numpy>=2.3.0",
"scipy>=1.16.1",
"plotly>=6.2.0",
"jupyter>=1.1.1",
]
# Benchmark dependencies (server-only)
benchmark = [
"psutil>=7.0.0",
"requests>=2.32.0",
]
# Development dependencies
dev = [
"pytest>=8.4.0",
"pytest-cov>=6.2.0",
"black>=25.1.0",
"ruff>=0.12.0",
"mypy>=1.17.0",
"mkdocs>=1.6.1",
"mkdocstrings>=0.30.0",
"mkdocs-git-authors-plugin>=0.10.0",
"mkdocs-git-revision-date-localized-plugin>=1.4.7",
"mkdocs-material>=9.6.16",
"mkdocs-minify-plugin>=0.8.0",
"types-PyYAML>=6.0.12.20250809",
"pandas-stubs>=2.3.0.250703",
]
[project.urls]
Homepage = "https://github.com/cmontemuino/amd-mi300x-ml-benchmarks"
Repository = "https://github.com/cmontemuino/amd-mi300x-ml-benchmarks"
Documentation = "https://cmontemuino.github.io/amd-mi300x-ml-benchmarks"
"Bug Tracker" = "https://github.com/cmontemuino/amd-mi300x-ml-benchmarks/issues"
[project.scripts]
# Analysis tools (workstation)
analyze-results = "amd_bench.cli.analyze:app"
# Benchmark tools (server)
#run-benchmark = "amd_bench.cli.benchmark:app"
[build-system]
requires = ["hatchling>=1.27.0"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/amd_bench"]
sources = ["src"]
only-packages = true
[[tool.uv.index]]
url = "https://pypi.org/simple/"
default = true
[tool.black]
line-length = 100
target-version = ["py312"]
include = '\.pyi?$'
extend-exclude = '''
/(
\.eggs
| \.git
| \.venv
| _build
| build
| dist
)/
'''
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "B", "A", "C4", "PT"]
ignore = ["E501"] # handled by black line-length
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # Allow unused imports in init files
"tests/*" = ["S101"] # Allow asserts in tests
"*/cli/*.py" = ["B008"] # Allow typer.Option calls in CLI modules
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
strict = true
show_error_codes = true
exclude = ["build/", "dist/", ".venv/"]
[[tool.mypy.overrides]]
module = "matplotlib.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "seaborn.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--cov=src/amd_bench",
"--cov-report=html",
"--cov-report=term-missing",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"gpu: marks tests that require GPU hardware",
]
[tool.coverage.run]
source = ["src/amd_bench"]
omit = [
"*/tests/*",
"*/test_*.py",
"*/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
]
[dependency-groups]
dev = [
"mkdocstrings-python>=1.16.12",
]