-
Notifications
You must be signed in to change notification settings - Fork 1
Make sure Rust-based find_paths function is included in docs
#170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #170 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 17 17
Lines 1443 1443
Branches 170 170
=========================================
Hits 1443 1443
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR ensures that the Rust-based find_paths function appears correctly in the Sphinx-generated documentation by addressing its module attribution and improving documentation formatting.
Key changes:
- Monkeypatched
find_paths.__module__to"revrt"for proper Sphinx autodoc inclusion - Added consistent formatting (blank line after rubric) in the Sphinx module template
- Updated type annotations in Rust docstrings to use
list of tupleformat
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| revrt/init.py | Monkeypatches find_paths.__module__ to ensure the Rust function appears under the revrt module in documentation |
| docs/source/_templates/custom-module-template.rst | Adds consistent blank line formatting after the Modules rubric, matching other sections |
| crates/revrt/src/ffi.rs | Updates type annotations in docstrings from list of (int, int) to list of tuple |
Because the function was put under the private
_rustmodule, it was not being included in the documentation. IN this PR, we monkeypatch the module for that function so that it gets included correctly