Skip to content

chore: slim DiffBio runtime dependencies - #3

Merged
mahdi-shafiei merged 1 commit into
mainfrom
chore/slim-runtime-dependencies
Aug 27, 2026
Merged

chore: slim DiffBio runtime dependencies#3
mahdi-shafiei merged 1 commit into
mainfrom
chore/slim-runtime-dependencies

Conversation

@mahdi-shafiei

Copy link
Copy Markdown
Collaborator

chore: slim DiffBio runtime dependencies

What

Removes pre-commit and ruff from the runtime dependency list, along with the
# Development essentials comment that grouped them.

Why

pip install diffbio installed a git hook manager and a linter. Neither appears anywhere in
src/ or in tests/; they are development tooling that was placed in [project] dependencies
rather than in an extra.

Why this is safe

Verified absent from the shipped and tested code:

DiffBio / pre-commit : src=0  tests=0
DiffBio / ruff       : src=0  tests=0

Positive control on the same search: pytest returns tests=273 in the sibling repo, so a zero
here is a true negative rather than a broken search.

Deliberately not changed

rdkit stays in the base dependencies. It is module-level in
src/diffbio/operators/drug_discovery/primitives.py and it is a legitimate cheminformatics
dependency for a bioinformatics library, not incidental weight.

pandas continues to appear in the resolution. It arrives through anndata, which requires
pandas>=2.3, and anndata is core to the single-cell operators. Correct, and left alone.

Measured effect

Resolution with Avitai sibling packages excluded: 100 packages before, 90 after. The larger
share of DiffBio's install weight comes from its siblings and is addressed by their own patches
in this series.

Verification before merge

  • pip install diffbio then python -c "import diffbio" in a clean virtual environment
  • Confirm CI installs the test or dev extra, since pre-commit and ruff are no longer implied

@mahdi-shafiei
mahdi-shafiei force-pushed the chore/slim-runtime-dependencies branch 2 times, most recently from 3da5c05 to d06118b Compare August 27, 2026 23:39
@mahdi-shafiei
mahdi-shafiei changed the base branch from chore/refresh-uv-lock to main August 27, 2026 23:39
Staged as patches/DiffBio/2026-08-18-001-slim-runtime-dependencies in avitai-portfolio.
Rebuilt on the updated chore/refresh-uv-lock so the lock carries packaging>=26.1.
@mahdi-shafiei
mahdi-shafiei force-pushed the chore/slim-runtime-dependencies branch from d06118b to 9345293 Compare August 27, 2026 23:43
@mahdi-shafiei
mahdi-shafiei merged commit b4068d3 into main Aug 27, 2026
8 of 10 checks passed
@mahdi-shafiei
mahdi-shafiei deleted the chore/slim-runtime-dependencies branch August 28, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant