Commit ba61583e authored by Luke Mewburn's avatar Luke Mewburn
Browse files

add pyproject.toml

Use to install dependencies required by the python tooling,
and configure ruff and ty.
parent a95ca065
Loading
Loading
Loading
Loading
+46
Changes for pyproject.toml: 46 added lines, 0 removed lines.
Original line number Diff line number Diff line
[project]
name = "schemas-definitions"
version = "2026-10"
readme = "README.md"
requires-python = ">=3.14"
dependencies = [
    "colorama",
    "lxml",
    "pycrate>=0.8.1",
]

[project.optional-dependencies]
lint = [
    "ruff >= 0.16",
    "ty",
]

[tool.ruff]
output-prefer-rule-codes = true

[tool.ruff.lint]
# Only enable preview rules if listed in `select`.
explicit-preview-rules = true
ignore = [
    "COM812",   # missing-trailing-comma
    "CPY001",   # missing-copyright-notice
    "EM102",	# f-string-in-exception
    "G004",	# logging-f-string
    "S101",	# assert
    "SLF001",	# private-member-access
    "T201",	# print
]
preview = true
select = [
    "ALL",
    "DOC102",   # docstring-extraneous-parameter
    "DOC201",   # docstring-missing-returns
    "DOC202",   # docstring-extraneous-returns
    "DOC402",   # docstring-missing-yields
    "DOC403",   # docstring-extraneous-yields
    "DOC501",   # docstring-missing-exception
    "DOC502",   # docstring-extraneous-exception
]

[tool.ruff.lint.pydocstyle]
convention = "google"