-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
244 lines (217 loc) · 5.97 KB
/
pyproject.toml
File metadata and controls
244 lines (217 loc) · 5.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
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
[project]
dynamic = ["version"]
name = "simplebench"
authors = [
{name = "Jerilyn Franz", email = "opensource@snowhare.com"}
]
maintainers = [
{name = "Jerilyn Franz", email = "opensource@snowhare.com"}
]
description = "A simple suite for benchmarking"
readme = "README.rst"
keywords = ["benchmark", "performance"]
license = "Apache-2.0"
license-files = ["LICENSE*"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Testing",
"Topic :: System :: Benchmark",
]
requires-python = ">=3.10"
dependencies = [
"dulwich>=0.24.10",
"numpy>=2.2.6",
"py-cpuinfo>=9.0.0",
"rich>=14.1.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/simplebench"]
exclude = [
".trunk/",
".git/",
".gitignore",
"coverage/",
"MODULE.bazel",
"BUILD.bazel",
"WORKSPACE.bazel",
]
[tool.hatch.build.targets.sdist]
exclude = [
".trunk/",
".git/",
".gitignore",
"coverage/",
"/.github/",
".python-version",
".readthedocs.yaml",
"/.vscode/",
"/coverage/",
"/coverage_html_report/",
"/documentation/",
"/examples/",
"/docs/",
"python-simplebench.code-workspace",
"uv.lock",
]
[tool.hatch.version]
path = "src/simplebench/_meta.py"
[tool.pyright]
include = ["src", "tests", "bench"]
exclude = ["**/node_modules",
"**/__pycache__",
"src/experimental",
"src/typestubs"
]
ignore = []
defineConstant = { DEBUG = true }
reportMissingImports = "error"
reportUnnecessaryIsInstance = false
[project.optional-dependencies]
graphs = [
"matplotlib>=3.10.6",
"pandas>=2.3.2",
"seaborn>=0.13.2",
]
all = [
"simplebench[graphs]",
]
[project.urls]
Homepage = "https://github.com/JerilynFranz/python-simplebench"
Documentation = "https://python-simplebench.readthedocs.io/en/latest/"
Repository = "https://github.com/JerilynFranz/python-simplebench.git"
Issues = "https://github.com/JerilynFranz/python-simplebench/issues"
Changelog = "https://github.com/JerilynFranz/python-simplebench/blob/main/CHANGELOG.md"
[tool.flake8]
max-line-length = 120
extend-ignore = ["E203"]
max-complexity = 10
[tool.isort]
line_length = 120
# Mode 3 - Vertical Hanging Indent
multi_line_output = 3
include_trailing_comma = true
[tool.yapf]
based_on_style = "pep8"
column_limit = 120
spaces_before_comment = 2
allow_multiline_lambdas = true
allow_split_before_dict_value = false
split_before_logical_operator = true
join_multiple_lines = false
split_arguments_when_comma_terminated = true
indent_dictionary_value = true
dedent_closing_brackets = true
coalese_brackets = true
split_before_dot = false
split_before_first_argument = true
split_before_named_assigns = true
[tool.pylint.format]
max-line-length = 120
[tool.pylint.MASTER]
suggestion-mode = 'yes'
[tool.pytest.ini_options]
testpaths = "tests"
norecursedirs = ".git .tox .vscode venv* .*_cache build dist testplan.py"
[tool.coverage.run]
branch = true
omit = [
'test_plan.py',
'tests/testspec.py'
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about code only used by type checking tools:
"if TYPE_CHECKING:",
"def .*: \\.\\.\\.$",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
ignore_errors = true
[tool.coverage.html]
directory = "coverage_html_report"
# Configuration for generating a dependency graph
# See https://pypi.org/project/pydeps/
# You may need to install graphviz separately
# (e.g. `brew install graphviz` on macOS, `sudo apt install graphviz` on Debian/Ubuntu)
# Also, you may need to install the `graphviz` Python package
# (e.g. `pip install graphviz` in your development environment)
# The output file will be created at the specified location
# relative to the project root
# run 'pydeps src/simplebench' from the root directory of the project to generate the graph
[tool.pydeps]
format = "svg"
max_bacon = 1
max_cluster_size = 2
max_module_depth = 5
output = "docs/dependencies.svg"
reverse = true
cluster = true
rankdir = "BT"
no_show = true
verbose = 0
pylib = false
exclude_exact = [
"simplebench.utils",
"simplebench.metaclasses",
"simplebench.si_units",
"simplebench.exceptions",
"simplebench.tasks",
"simplebench.protocols",
"simplebench.reporters.choices",
"simplebench.reporters.metaclasses",
"simplebench.reporters.reporter_option",
"simplebench.reporters.csv",
"simplebench.reporters.rich_table",
"simplebench.reporters.graph",
"simplebench.reporters.json",
"simplebench.reporters.interfaces",
"simplebench.stats",
"simplebench.constants",
"simplebench.enums",
"simplebench.validators",
]
[dependency-groups]
dev = [
"isort>=5.12.0",
"coverage>=7.10.6",
"flake8>=7.3.0",
"graphviz>=0.21",
"mypy>=1.17.1",
"pydeps>=1.23.2",
"hatch>=1.13",
"hatchling>=1.27",
"pandas-stubs>=2.3.2.250827",
"pylint>=3.3.8",
"pytest>=8.4.1",
"pytest-cov>=6.2.1",
"sphinx>=8.1.3",
"sphinx-copybutton>=0.5.2",
"furo>=2025.09.25",
"testplan>=25.8.0",
"types-seaborn>=0.13.2.20250809",
"yapf>=0.40.0",
"sphinx-design>=0.6.1",
]