# SPDX-License-Identifier: MIT [build-system] requires = ["hatchling>=1.25"] build-backend = "hatchling.build" [project] name = "a2600-python" version = "0.1.0.dev0" description = "Readable, pure-Python Atari 2600 emulator built on 6502-python" readme = "README.md" # The floor is the newest Python PyPy supports (3.11 as of PyPy 7.3.23); raise it when PyPy does. requires-python = ">=3.11" license = { file = "LICENSE" } authors = [{ name = "alewman" }] # A git revision, never a local path, until 6502-python is released: main at # 741419a, the commit the rest of the family pins (6502-rust, a5200-python, # a7800-python), so that one URL serves a board that hosts this one. The 2600 # needs nothing beyond plain MOS6502; the move from 1ae3610 left every gate # unchanged (docs/validation.md, "The CPU core's own judge"). dependencies = [ # 828b619 = 741419a after 6502-python's history rewrite of 2026-11-21 (same tree). "6502-python @ git+https://github.com/alewman/6502-python@828b61940415eed39678fa1f7d310608201e54ef", ] [project.optional-dependencies] dev = [ "pytest>=8", # Pinned: `ruff format --check` must see the formatter the tree was formatted with. "ruff==0.16.8", ] play = ["pygame-ce>=2.5"] [project.scripts] a2600-python = "a2600_python.__main__:main" a2600-play = "a2600_python.play:main" [tool.hatch.metadata] allow-direct-references = true [tool.hatch.build.targets.wheel] packages = ["src/a2600_python"] [tool.ruff] line-length = 100 target-version = "py311" extend-exclude = ["reference", "tests/test_roms", "tests/mame_traces", "tests/detector_runs"] [tool.ruff.lint] select = ["E", "W", "F", "I", "UP", "B", "C4", "SIM", "PERF", "RUF"] [tool.ruff.lint.per-file-ignores] # Research and detector scripts: long tables and report lines. "scripts/*" = ["E501", "B905", "B007"] # ctypes structures declare _fields_ as a class list. "scripts/stella_run.py" = ["E501", "B905", "B007", "RUF012"] [tool.ruff.lint.isort] known-first-party = ["a2600_python"] [tool.pytest.ini_options] testpaths = ["tests"] addopts = "--strict-markers -ra -m 'not slow'" pythonpath = ["src", "tests"] markers = ["slow: runs that take many emulated seconds or need a detector (pytest -m slow)"]