v1.11.2 - Doctest Utilities and Configuration Refinement
π Overview
Introduce new utility functions for executing doctests and refine the configuration loading process to better handle unordered sections. This release also standardises documentation metadata and improves the reliability of the coverage reporting workflow.
β¨ New Features
π Integrate Doctest Checking Functions
Introduce automated doctest execution to verify code examples within docstrings.
- Implement the
check_doctest()function insrc/utils/scripts.pyto run doctests across all Python files in the package. - Implement the
check_doctest_module()function to target specific modules for doctest validation. - Implement the
check_doctest_cli()function to provide a command-line interface for module-specific doctest checking.
π Bug Fixes
βοΈ Refine Configuration Order Validation
Resolve an issue where multiple sections without an explicit order value caused duplicate key errors.
- Update the
SectionConfig()class to consistently allowNonefor theorderattribute. - Update the
_parse_sections_config()function inconfig.pyto remove the default value of0when extractingorderfrom configuration data. - Ensure that sections without an explicit order are correctly sorted to the end of the validation sequence.
βοΈ Technical Improvements
π Enhance Project Workflow
Improve the robustness of the development and documentation workflows.
- Update the
git_add_coverage_report()function to use the--forceflag when adding the coverage report directory, ensuring reports are captured regardless of ignore rules. - Fix typographical errors and standardise the project title to
docstring-format-checkeracross documentation files. - Refine the documentation home page to use a dedicated
coverpage_icon_sourcevariable inmkdocs.yamlfor better maintainability.
πͺ Pull Requests
Full Changelog: v1.11.1...v1.11.2