chore: slim DiffBio runtime dependencies - #3
Merged
Conversation
mahdi-shafiei
force-pushed
the
chore/slim-runtime-dependencies
branch
2 times, most recently
from
August 27, 2026 23:39
3da5c05 to
d06118b
Compare
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
force-pushed
the
chore/slim-runtime-dependencies
branch
from
August 27, 2026 23:43
d06118b to
9345293
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
chore: slim DiffBio runtime dependencies
What
Removes
pre-commitandrufffrom the runtime dependency list, along with the# Development essentialscomment that grouped them.Why
pip install diffbioinstalled a git hook manager and a linter. Neither appears anywhere insrc/or intests/; they are development tooling that was placed in[project] dependenciesrather than in an extra.
Why this is safe
Verified absent from the shipped and tested code:
Positive control on the same search:
pytestreturnstests=273in the sibling repo, so a zerohere is a true negative rather than a broken search.
Deliberately not changed
rdkitstays in the base dependencies. It is module-level insrc/diffbio/operators/drug_discovery/primitives.pyand it is a legitimate cheminformaticsdependency for a bioinformatics library, not incidental weight.
pandascontinues to appear in the resolution. It arrives throughanndata, which requirespandas>=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 diffbiothenpython -c "import diffbio"in a clean virtual environmenttestordevextra, since pre-commit and ruff are no longer implied