-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (72 loc) · 2.52 KB
/
Copy pathpyproject.toml
File metadata and controls
82 lines (72 loc) · 2.52 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
[project]
name = "nes-player"
version = "0.1.0"
description = "Multimodal agent that learns to play NES games from human-like observations"
authors = [{ name = "Ruslan Semov" }]
license = "MIT"
license-files = ["LICENSE"]
readme = "README.md"
requires-python = ">=3.14,<3.15"
dependencies = [
"stable-retro>=1.0.1",
"numpy>=1.26",
"opencv-python>=5.0.0.93",
"zarr>=3.3.0",
"torch>=2.13.0",
"torchvision>=0.28.0",
"sounddevice>=0.5.5",
"torchaudio>=2.11.0",
]
[dependency-groups]
dev = [
"pytest>=8",
"ruff>=0.5",
]
[project.urls]
Homepage = "https://nesplayer.recluse.lol"
Repository = "https://github.com/Recluse/NES-Player"
[project.scripts]
nes-player = "nes_player.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/nes_player"]
# Two publication paths existed with two different rule sets: scripts/publish.py
# builds the public mirror and withholds docs-ru/, web/, .claude/ and the
# personal Telegram scripts, while a plain `uv build` sdist packed all of them.
# Nothing secret was in there, but an operator running `uv publish` would have
# shipped exactly what the other path deliberately holds back. The sdist now
# carries only what the package needs; the mirror stays the one publish path.
# Kept as an allowlist, not a denylist, so a new private file is excluded by
# default rather than by remembering to add it.
[tool.hatch.build.targets.sdist]
# Anchored with a leading slash: unanchored, `docs` also matched `web/docs`
# and `README.md` matched every README in the tree, so the first attempt at
# this allowlist shipped exactly the four files it was written to withhold.
include = [
"/src/nes_player",
"/tests",
"/docs",
"/integrations",
"/README.md",
"/LICENSE",
"/pyproject.toml",
"/uv.lock",
]
exclude = ["/tests/unit/test_public_hygiene.py"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
line-length = 100
target-version = "py314"
[tool.ruff.lint]
# Pinned so the lint is the same on every machine and CI. Deliberately narrow:
# pycodestyle errors, pyflakes, import order. Blind `except Exception` is used
# on purpose in the render and worker threads — a transient failure there must
# not take the run down — so the rules that forbid it are not enabled.
select = ["E", "F", "I", "W", "UP", "B"]
[tool.ruff.lint.per-file-ignores]
# Integration tests skip themselves before importing the emulator, so their
# imports cannot all sit at the top of the file.
"tests/*" = ["E402"]