Skip to content

Conversation

@ppinchuk
Copy link
Collaborator

@ppinchuk ppinchuk commented Dec 3, 2025

Because the function was put under the private _rust module, it was not being included in the documentation. IN this PR, we monkeypatch the module for that function so that it gets included correctly

@ppinchuk ppinchuk added this to the Finalize OSS release milestone Dec 3, 2025
@ppinchuk ppinchuk self-assigned this Dec 3, 2025
Copilot AI review requested due to automatic review settings December 3, 2025 19:50
@ppinchuk ppinchuk added the documentation Improvements or additions to documentation label Dec 3, 2025
@ppinchuk ppinchuk requested a review from castelao as a code owner December 3, 2025 19:50
@ppinchuk ppinchuk added enhancement Update to logic or general code improvements p-high Priority: high labels Dec 3, 2025
@codecov-commenter
Copy link

codecov-commenter commented Dec 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (3d1a1b8) to head (a1698f5).

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           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

Copilot AI left a 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 tuple format

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

@ppinchuk ppinchuk merged commit 568272e into main Dec 10, 2025
29 checks passed
@ppinchuk ppinchuk deleted the pp/rust_func_in_docs branch December 10, 2025 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement Update to logic or general code improvements p-high Priority: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants