[build-system] requires = ["hatchling>=1.25"] build-backend = "hatchling.build" [project] name = "arm7tdmi-python" version = "0.1.0.dev0" description = "Readable, pure-Python ARM7TDMI (ARMv4T, Game Boy Advance CPU) core reference implementation" readme = "README.md" # The floor is the newest Python PyPy supports (3.11 as of PyPy 7.3.20); raise it when PyPy does. requires-python = ">=3.11" license = { file = "LICENSE" } authors = [{ name = "alewman" }] classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries", "Topic :: System :: Emulators", ] dependencies = [] [project.optional-dependencies] dev = [ "pytest>=8", # Pinned: `ruff format --check` must see the formatter the tree was formatted with. "ruff==0.16.8", ] [tool.hatch.build.targets.wheel] packages = ["src/arm7tdmi_python"] [tool.ruff] line-length = 100 target-version = "py311" extend-exclude = ["reference", "docs"] [tool.ruff.lint] select = ["E", "W", "F", "I", "UP", "B", "C4", "SIM", "PERF", "RUF"] [tool.ruff.lint.per-file-ignores] "scripts/*" = ["E501"] "src/arm7tdmi_python/_tables.py" = ["E501"] # The schedule tables are one row of timing.md per line. "tests/test_bus_schedule.py" = ["E501"] [tool.ruff.lint.isort] known-first-party = ["arm7tdmi_python"] [tool.ruff.format] # Generated by scripts/gen_tables.py, whose --check compares it byte for byte. exclude = ["src/arm7tdmi_python/_tables.py"] quote-style = "double" indent-style = "space" [tool.pytest.ini_options] testpaths = ["tests"] addopts = "--strict-markers -ra" pythonpath = ["src", "."] markers = [ "slow: a whole-corpus or million-case run; `pytest -m \"not slow\"` is the quick loop", ]