pyproject.toml

[build-system]
requires = ["maturin>=1.9,<2"]
build-backend = "maturin"

[project]
name = "xpd"
requires-python = ">=3.13"
license = "MIT AND Apache-2.0 AND BSD-3-Clause AND NCSA AND MPL-2.0 AND ISC AND MIT-0 AND PSF-2.0"
license-files = ["LICENSE-MIT", "LICENSE-APACHE", "licenses/*"]
classifiers = [
  "Development Status :: 3 - Alpha",
  "Environment :: Console",
  "Intended Audience :: Developers",
  "Programming Language :: Rust",
  "Topic :: Software Development :: Quality Assurance",
]
dynamic = ["version", "description", "readme", "keywords"]
dependencies = [
  "fastmcp[apps,tasks]~=4.2.0",
  "prefab-ui==0.21.1",
  # The server reads sgconfig.yml and xpd.yml to learn which rule files a project has.
  "pyyaml>=6",
]

[project.urls]
Documentation = "https://bjoernaagaard.github.io/xpd/"
Repository = "https://github.com/bjoernaagaard/xpd"

[tool.maturin]
bindings = "bin"
# The wheel also installs the `xpd` Python package, which holds the MCP server.
python-source = "python"

[tool.ruff]
line-length = 100

[tool.ruff.lint]
select = ["ALL"]
# D: docstrings; COM812, ISC001: clash with ruff format; CPY: no copyright headers;
ignore = ["D", "COM812", "ISC001", "CPY"]

[tool.ruff.lint.per-file-ignores]
"py/*.py" = ["T20", "INP001"]