-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
149 lines (134 loc) · 3.34 KB
/
Copy pathpyproject.toml
File metadata and controls
149 lines (134 loc) · 3.34 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
[build-system]
requires = [
# pin setuptools:
# https://github.com/airspeed-velocity/asv/pull/1426#issuecomment-2290658198
"setuptools>=68,<=80.9.0",
"setuptools_scm",
]
build-backend = "setuptools.build_meta"
[project]
name = "lsv"
description = "Lightspeed Velocity: An expanded version of ASV for diff-based Python benchmarking"
readme = "README.rst"
requires-python = ">=3.8"
dynamic = [
"version",
]
dependencies = [
"asv-runner>=v0.2.1",
"json5",
"build",
"tabulate",
"virtualenv",
"packaging",
"importlib-metadata",
"tomli; python_version < '3.11'",
"colorama; platform_system == 'Windows'",
"pyyaml; platform_python_implementation != \"PyPy\"",
"pympler; platform_python_implementation != \"PyPy\"",
]
[project.urls]
"Source Code" = "https://github.com/airspeed-velocity/asv"
Documentation = "https://asv.readthedocs.io/en/stable/"
[project.scripts]
lsv = "asv.__main__:main"
[project.optional-dependencies]
test = [
"pytest",
"pytest-xdist",
"pytest-timeout",
"pytest-rerunfailures>=10.0",
"filelock",
"numpy",
"scipy; platform_python_implementation != \"PyPy\"",
"feedparser",
"selenium",
"flaky",
"pytest-rerunfailures",
"python-hglib; platform_system != 'Windows'",
"pip",
]
doc = [
"sphinx",
"sphinx-autoapi",
"sphinx-collapse",
"sphinxcontrib.bibtex",
"setuptools", # dependency from bibtex
"sphinxcontrib.katex",
"furo",
"astroid",
]
dev = [
"ruff",
]
hg = [
"python-hglib",
]
plugs = [
"asv-bench-memray",
]
envs = [
"py-rattler",
"uv",
]
all = ["asv[doc,dev,hg,envs]"]
[tool.pytest.ini_options]
minversion = "6"
testpaths = ["test"]
log_level = "INFO"
addopts = ["-p no:logging", "-ra", "--strict-config", "--strict-markers"]
filterwarnings = ["error"]
[tool.ruff]
line-length = 99
extend-exclude = [
"test/example_results/cheetah",
]
[tool.ruff.lint]
extend-select = [
"B",
"C4",
"FURB",
"G",
"I",
"ICN",
"PGH",
"PIE",
"RUF",
"UP",
]
ignore = [
"B007", # Loop control variable not used within loop body
"B020", # Loop control variable overrides iterable it iterates
"B904", # Within an `except` clause, raise exceptions with `raise ... from err`
"E741", # Do not use variables named 'I', 'O', or 'l'
"RUF005", # Consider unpacking instead of concatenation
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"RUF059", # Unpacked variable is never used
"UP015", # Unnecessary mode argument
"UP028", # Replace `yield` over `for` loop with `yield from`
]
[tool.ruff.lint.per-file-ignores]
"test/**" = ["B011", "B017", "B018", "B028"]
[tool.ruff.format]
quote-style = "preserve"
[tool.setuptools_scm]
write_to = "asv/_version.py"
[tool.cibuildwheel.linux]
manylinux-x86_64-image = "manylinux2014"
manylinux-aarch64-image = "manylinux2014"
musllinux-x86_64-image = "musllinux_1_2"
[tool.cibuildwheel.macos]
archs = "x86_64 arm64"
[tool.cibuildwheel.windows]
archs = ['AMD64']
[tool.setuptools.packages.find]
where = ["."]
exclude = ["wheelhouse", "test", "benchmarks", "docs"]
namespaces = true
include = ["asv", "asv.*"]
[tool.codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = '.git,*.css'
check-hidden = true
ignore-regex = '- Boris Feld\b'
# ignore-words-list = ''