caelum0x 174222bcaa feat: Builder-Track named-user tools, bio + evidence-intelligence platform, Apache-2.0
Builds PaperTrail from the base skeleton into a full evidence-verification platform
for the "Built with Claude: Life Sciences" hackathon (Builder Track).

New named-user features (Build Beyond the Bench):
- Lab Notebook Companion — rough bench notes -> structured, searchable, grounded
  experiment records (lib/labNotebook, /console/lab-notebook, migration 0059)
- Clinical Trial Matcher — de-identified patient notes -> ranked eligible
  ClinicalTrials.gov trials with per-criterion inclusion/exclusion reasoning
  (lib/trialMatcher, /console/trial-matcher, migrations 0060)

Platform:
- Deterministic verification moat (biostats recompute, exact-span grounding)
- 11 biomedical evidence engines (FAERS, GWAS, Open Targets, ChEMBL, ClinVar,
  PharmGKB, PubTator, DDI, repurposing, biomarker, unified verifier)
- Evidence Intelligence (KG, dossier, provenance/export, RWE) + enterprise
  governance (RBAC, /api/v1 gateway, metering, audit chain, retention)
- 17 OSS projects assimilated into native TypeScript on our stack (backend/engines
  retained + credited in NOTICE)
- Multi-format upload (PDF/DOCX/XLSX/CSV/MD/TXT), logo, marketing site
- Next.js 16 upgrade, benchmark harness (honest smoke-test caveat)

Licensing: Apache-2.0 (LICENSE + NOTICE).
2026-07-10 16:23:13 +03:00

378 lines
10 KiB
TOML

# See https://setuptools.readthedocs.io/en/latest/build_meta.html
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pykeen"
version = "1.11.2-dev"
description = "A package for training and evaluating multimodal knowledge graph embeddings"
readme = "README.md"
authors = [
{ name = "Mehdi Ali", email = "pykeen2019@gmail.com" },
{ name = "Max Berrendorf", email = "max.berrendorf@gmail.com" },
{ name = "Laurent Vermue", email = "pykeen2019@gmail.com" },
{ name = "Charles Tapley Hoyt", email = "cthoyt@gmail.com" },
]
maintainers = [
{ name = "Max Berrendorf", email = "max.berrendorf@gmail.com" },
{ name = "Charles Tapley Hoyt", email = "cthoyt@gmail.com" },
]
# See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#classifiers
# Search tags using the controlled vocabulary at https://pypi.org/classifiers
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Framework :: Pytest",
"Framework :: tox",
"Framework :: Sphinx",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Information Analysis",
]
keywords = [
"snekpack", # please keep this keyword to credit the cookiecutter-snekpack template
"cookiecutter",
"Knowledge Graph Embeddings",
"Machine Learning",
"Data Mining",
"Linked Data",
]
# License Information. This can be any valid SPDX identifiers that can be resolved
# with URLs like https://spdx.org/licenses/MIT
# See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
license = { file = "LICENSE" }
requires-python = ">=3.10"
dependencies = [
"dataclasses-json",
"numpy",
"numpy",
"scipy>=1.7.0",
"click",
"click_default_group",
"scikit-learn",
"torch>=2.0,<2.10; sys_platform == 'win32'",
"torch>=2.0; sys_platform != 'win32'",
"tqdm",
"requests",
"optuna>=2.0.0",
"pandas>=1.0.0",
"tabulate",
"more_click",
"more_itertools",
"pystow>=0.8.4",
"docdata>=0.0.5",
"class_resolver>=0.6.0",
"pyyaml",
"torch_max_mem>=0.1.4",
"torch-ppr>=0.0.7",
"typing_extensions",
]
[project.optional-dependencies]
templating = ["jinja2"]
plotting = ["matplotlib", "seaborn"]
wordcloud = ["wordcloud", "IPython"]
opt_einsum = ["opt_einsum"]
mlflow = ["mlflow>=1.8.0"]
ogb = ["ogb>=1.3.4"]
wandb = ["wandb"]
neptune = ["neptune-client"]
tensorboard = ["tensorboard"]
transformers = ["transformers"]
lightning = [
# cf. https://github.com/Lightning-AI/lightning/pull/14117
"pytorch_lightning>=1.7.2",
]
biomedicine = ["bioregistry", "pyobo>=0.8.7"]
tests = ["unittest-templates>=0.0.5", "coverage", "pytest"]
docs = [
"sphinx>=8.0",
"sphinx-rtd-theme>=3.0",
"sphinx-click",
"sphinx_automodapi",
"texext",
"graphviz",
]
pyg = [
# from 2.3 onwards, you can install this without pre-compiled dependencies
# for training, you may still want to have those, cf. https://github.com/pyg-team/pytorch_geometric?tab=readme-ov-file#pypi
"torch_geometric",
]
# See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#urls
[project.urls]
"Bug Tracker" = "https://github.com/pykeen/pykeen/issues"
Homepage = "https://github.com/pykeen/pykeen"
Repository = "https://github.com/pykeen/pykeen.git"
Documentation = "https://pykeen.readthedocs.io"
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
# this implicitly sets `packages = ":find"`
where = ["src"] # list of folders that contain the packages (["."] by default)
# See https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[tool.setuptools.package-data]
"*" = ["*.*"]
[project.scripts]
pykeen = "pykeen.cli:main"
# You can add your own datasets with the following entrypoint
# pykeen.datasets =
# hetionet = pykeen.datasets.hetionet:Hetionet
[tool.cruft]
skip = ["**/__init__.py", "tests/*"]
# MyPy, see https://mypy.readthedocs.io/en/stable/config_file.html
[tool.mypy]
plugins = []
# Doc8, see https://doc8.readthedocs.io/en/stable/readme.html#ini-file-usage
[tool.doc8]
max-line-length = 120
ignore-path-errors = [
"docs/source/tutorial/inductive_lp.rst; D000",
"docs/source/tutorial/understanding_evaluation.rst; D000",
# TODO reinvestigate after upgrading to sphinx 7+
]
# Coverage, see https://coverage.readthedocs.io/en/latest/config.html
[tool.coverage.run]
branch = true
source = ["pykeen"]
omit = ["tests/*", "docs/*", "src/pykeen/cli/*", "src/pykeen/__main__.py"]
[tool.coverage.paths]
source = ["src/pykeen", ".tox/*/lib/python*/site-packages/pykeen"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == \"__main__\":",
"if TYPE_CHECKING:",
"def __str__",
"def __repr__",
]
[tool.ruff]
line-length = 120
extend-include = ["*.ipynb"]
[tool.ruff.lint]
# See https://docs.astral.sh/ruff/rules
extend-select = [
# Airflow (AIR)
# "AIR", # (framework-specific, not used in this project)
# eradicate (ERA)
# "ERA", # commented out code; false positives for "mathy" comments
# FastAPI (FAST)
# "FAST", # (framework-specific, not used in this project)
# flake8-2020 (YTT)
# "YTT", # (not needed for Python >=3.10)
# flake8-annotations (ANN)
# "ANN",
# flake8-async (ASYNC)
# "ASYNC",
# flake8-bandit (S)
"S",
# flake8-blind-except (BLE)
# "BLE",
# flake8-boolean-trap (FBT)
# "FBT",
# flake8-bugbear (B)
"B",
# flake8-builtins (A)
"A",
# flake8-commas (COM)
# "COM",
# flake8-comprehensions (C4)
"C4",
# flake8-copyright (CPY)
# "CPY",
# flake8-datetimez (DTZ)
# "DTZ",
# flake8-debugger (T10)
"T10",
# flake8-django (DJ)
# "DJ", # (framework-specific, not used in this project)
# flake8-errmsg (EM)
# "EM",
# flake8-executable (EXE)
"EXE",
# flake8-fixme (FIX)
# "FIX",
# flake8-future-annotations (FA)
"FA",
# flake8-gettext (INT)
# "INT", # (framework-specific, not used in this project)
# flake8-implicit-str-concat (ISC)
"ISC",
# flake8-import-conventions (ICN)
# "ICN",
# flake8-logging (LOG)
"LOG",
# flake8-logging-format (G)
# "G",
# flake8-no-pep420 (INP)
"INP",
# flake8-pie (PIE)
"PIE",
# flake8-print (T20)
"T20",
# flake8-pyi (PYI)
# "PYI",
# flake8-pytest-style (PT)
"PT",
# flake8-quotes (Q)
"Q",
# flake8-raise (RSE)
"RSE",
# flake8-return (RET)
"RET",
# flake8-self (SLF)
# "SLF",
# flake8-simplify (SIM)
"SIM",
# flake8-slots (SLOT)
"SLOT",
# flake8-tidy-imports (TID)
# "TID",
# flake8-todos (TD)
# "TD",
# flake8-type-checking (TC)
# "TC",
# flake8-unused-arguments (ARG)
# "ARG",
# flake8-use-pathlib (PTH)
"PTH",
# flynt (FLY)
"FLY",
# isort (I)
"I",
# mccabe (C90)
"C90",
# NumPy-specific rules (NPY)
"NPY",
# pandas-vet (PD)
"PD",
# pep8-naming (N)
"N",
# Perflint (PERF)
"PERF",
# pycodestyle (E, W)
"E", # pycodestyle errors
"W", # pycodestyle warnings
# pydoclint (DOC)
# "DOC", # requires preview; supersedes darglint
# pydocstyle (D)
"D",
# Pyflakes (F)
"F",
# pygrep-hooks (PGH)
"PGH",
# Pylint (PL)
# "PL",
# pyupgrade (UP)
"UP",
# refurb (FURB)
"FURB",
# Ruff-specific rules (RUF)
# "RUF",
# tryceratops (TRY)
# "TRY",
]
ignore = [
"D105", # Missing docstring in magic method
"S101", # Use of assert detected, TODO remove
"D102", # Missing docstring in public method, TODO remove
]
# See https://docs.astral.sh/ruff/settings/#per-file-ignores
[tool.ruff.lint.per-file-ignores]
"docs/**/*.py" = [
"INP001", # docs are not a package
"E402", # allow imports not at top for narrative purposes
"T201", # allow prints
"PTH", # allow os.path
]
"notebooks/**" = [
"INP001", # notebooks are not a package
"T201", # allow prints
"PTH", # os.path instead of pathlib
]
"benchmarking/**/*.py" = ["INP001"] # benchmarking scripts are not a package
"tests/**/*.py" = [
"INP001", # tests are not a package
"PIE790", # allow pass in test stubs/abstract methods
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.isort]
known-third-party = ["tqdm"]
known-first-party = ["pykeen", "tests"]
relative-imports-order = "closest-to-furthest"
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 5.
max-complexity = 21
# Pytest, see https://docs.pytest.org/en/stable/reference/customize.html#pyproject-toml
[tool.pytest.ini_options]
addopts = "--strict-markers"
markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"]
[tool.bumpversion]
current_version = "1.11.2-dev"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(?:-(?P<release>[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+(?P<build>[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?"
serialize = [
"{major}.{minor}.{patch}-{release}+{build}",
"{major}.{minor}.{patch}+{build}",
"{major}.{minor}.{patch}-{release}",
"{major}.{minor}.{patch}",
]
commit = true
tag = false
[tool.bumpversion.parts.release]
optional_value = "production"
first_value = "dev"
values = ["dev", "production"]
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "docs/source/conf.py"
search = "release = \"{current_version}\""
replace = "release = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "src/pykeen/version.py"
search = "VERSION = \"{current_version}\""
replace = "VERSION = \"{new_version}\""