Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (88 loc) · 3.32 KB
/
Copy pathpyproject.toml
File metadata and controls
106 lines (88 loc) · 3.32 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
[build-system]
requires = ["uv_build>=0.9,<0.10"]
build-backend = "uv_build"
# ============================================================================
# project info
# ============================================================================
[project]
name = "compas_benchmarks"
description = "Benchmarks for the COMPAS core ecosystem."
keywords = ["architecture", "engineering", "fabrication", "construction", "benchmark"]
authors = [{ name = "Gonzalo Casas", email = "casas@arch.ethz.ch" }]
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.11"
version = "0.1.0"
classifiers = [
"Development Status :: 3 - Alpha",
"Topic :: Scientific/Engineering",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
# `inheritance`-aware dtype resolution (used by the msgpack format) landed in compas 2.12.
dependencies = ["compas>=2.12"]
[project.optional-dependencies]
# Optional serialization formats. Every format registers as unavailable and is skipped
# when its dependency is missing, so the benchmark still runs without these.
formats = ["compas_pb>=1.1.4", "msgspec", "zstandard"]
[project.urls]
Repository = "https://github.com/compas-dev/compas_benchmarks.git"
Issues = "https://github.com/compas-dev/compas_benchmarks/issues"
# Tooling is a dependency group rather than an extra: it is needed to work on the
# benchmarks, never to install them.
[dependency-groups]
dev = ["pytest>=8", "ruff>=0.9"]
# ============================================================================
# uv
# ============================================================================
[tool.uv]
# The tooling group is always wanted; the optional formats are requested with
# `uv sync --all-extras`, since benchmarking them means installing them.
default-groups = ["dev"]
[tool.uv.build-backend]
module-name = "compas_benchmarks"
module-root = "src"
# ============================================================================
# pytest
# ============================================================================
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests", "src/compas_benchmarks"]
python_files = ["test_*.py", "*_test.py", "test.py"]
addopts = ["-ra", "--strict-markers", "--tb=short"]
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"IGNORE_EXCEPTION_DETAIL",
"ALLOW_UNICODE",
"ALLOW_BYTES",
"NUMBER",
]
# ============================================================================
# style — ruff only, for both linting and formatting
# ============================================================================
[tool.ruff]
line-length = 179
indent-width = 4
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["I001"]
"tests/*" = ["I001"]
[tool.ruff.lint.isort]
force-single-line = true
known-first-party = ["compas_benchmarks"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.pycodestyle]
max-doc-length = 179
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"