Skip to content

Docs cleanup - #29

Merged
asiomchen merged 10 commits into
mainfrom
docs-cleanup
Mar 22, 2026
Merged

asiomchen merged 10 commits into
mainfrom
docs-cleanup

Conversation

@asiomchen

@asiomchen asiomchen commented Mar 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add custom exception hierarchy (MolAlchemyError, InvalidMoleculeError, InvalidReactionError) replacing raw
    ValueError in RDKit type processors
  • Add -> ColumnElement[bool] return type hints to all comparator methods across both RDKit and Bingo backends
  • Export exceptions from top-level molalchemy package and comparators from molalchemy.bingo subpackage
  • Update README/docs to reflect new exceptions and project structure

Changes

  • New file: src/molalchemy/exceptions.py — custom exception hierarchy
  • Modified: src/molalchemy/rdkit/types.py — InvalidMoleculeError/InvalidReactionError in bind_processor
  • Modified: src/molalchemy/rdkit/comparators.py — return type hints on all methods
  • Modified: src/molalchemy/bingo/comparators.py — return type hints on all methods
  • Modified: src/molalchemy/init.py — export exceptions
  • Modified: src/molalchemy/bingo/init.py — export comparators

@codecov

codecov Bot commented Mar 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.89%. Comparing base (d39756f) to head (e1684ee).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #29      +/-   ##
==========================================
+ Coverage   80.61%   80.89%   +0.27%     
==========================================
  Files          22       23       +1     
  Lines        1620     1628       +8     
  Branches       39       39              
==========================================
+ Hits         1306     1317      +11     
+ Misses        307      305       -2     
+ Partials        7        6       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@asiomchen
asiomchen merged commit 3764adf into main Mar 22, 2026
16 checks passed
@asiomchen
asiomchen deleted the docs-cleanup branch March 22, 2026 20:44
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