-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
60 lines (51 loc) · 2.16 KB
/
Copy pathpyproject.toml
File metadata and controls
60 lines (51 loc) · 2.16 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "jackhammer-benchmark"
version = "1.1.0"
description = "A reproducible, paired Balatro agent benchmark on the Jackdaw simulator"
readme = "README.md"
requires-python = ">=3.12"
license = "MIT"
authors = [{ name = "idIing" }]
dependencies = [
# Pinned by direct reference, not by name. `jackdaw` on PyPI is an unrelated
# project (an Active Directory enumeration tool), so a bare `jackdaw` requirement
# installs a stranger's package and `import jackdaw.env` fails at the first agent.
# The commit is the one protocol v2 section 1 names: pinning it here is what makes
# a pip-installed kit produce an attributable result rather than a warning.
"jackdaw @ git+https://github.com/idIing/jackdaw-balatro.git@de733ebd494a5da71fb7049b3b6b18ecd039786c",
"numpy>=1.24",
]
[dependency-groups]
dev = [
"pytest>=8.0",
"ruff>=0.15.6",
]
# Required for the pinned `jackdaw @ git+...` dependency above.
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/jackhammer"]
# The frozen seed battery is data the kit cannot run without, and it lives at the repo
# root because protocol v2 § 2 names that path and every artifact stamps it. Copying it
# into the wheel is what makes `pip install` produce a working benchmark rather than an
# importable package that raises on load_battery(). See playground/seeds.py.
[tool.hatch.build.targets.wheel.force-include]
"config/seed_battery_v1.json" = "jackhammer/config/seed_battery_v1.json"
# No [tool.uv.sources] for jackdaw: the pin above is a PEP 508 direct reference, so it
# travels in the built wheel's metadata. A uv-only source would pin this checkout and
# leave every installed copy resolving `jackdaw` from PyPI -- one pin, in the place
# that ships, rather than two that can drift apart.
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ["-q", "-m", "not legacy_slow"]
markers = [
"legacy_slow: retained baseline regression test excluded from the fast public suite",
]
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]