Conversation
Contributor
Reviewer's GuideReplace jupyter-sphinx-based documentation execution with Sybil-powered doctest and code block testing, wiring it into pytest and adding fixtures to control audmodel configuration and execution environment while updating dependencies accordingly. Sequence diagram for Sybil-based doctest collection with pytestsequenceDiagram
participant Pytest
participant SybilCollection
participant Sybil_usage as Sybil_usage_rst
participant Sybil_config as Sybil_configuration_rst
participant Fixture_run_tmp as run_in_tmpdir
participant Fixture_reset_cfg as reset_config
participant Fixture_default_cfg as default_configuration
participant AudConfig as audmodel.config
Pytest->>SybilCollection: pytest_collect_file
SybilCollection->>Sybil_usage: pytest()
activate Sybil_usage
Sybil_usage->>Fixture_run_tmp: run_in_tmpdir
Fixture_run_tmp-->>Sybil_usage: tmpdir context
Sybil_usage->>Fixture_reset_cfg: reset_config
Fixture_reset_cfg-->>Sybil_usage: config snapshot
Sybil_usage-->>SybilCollection: execute doctests in usage.rst
deactivate Sybil_usage
SybilCollection->>Sybil_config: pytest()
activate Sybil_config
Sybil_config->>Fixture_default_cfg: default_configuration
Fixture_default_cfg->>AudConfig: load_configuration_file
AudConfig-->>Fixture_default_cfg: default values
Sybil_config-->>SybilCollection: execute doctests in configuration.rst
deactivate Sybil_config
SybilCollection-->>Pytest: report doctest results
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
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.
Use
sybilinstead ofjupyter-sphinxfor better separation of testing and building the documentation.