PageIndex
PageIndex copied to clipboard
Feat: Add Pydantic configuration validation
Building on the modularization of the core logic, this PR introduces Pydantic for robust, type-safe configuration loading and validation.
Changes:
- Added pageindex/config.py leveraging Pydantic to validate settings.
- Updated config.yaml to use standard boolean values (
true/false) instead of string representations ("yes"/"no"). - Updated page_index.py to utilize the new
ConfigLoaderseamlessly. - Added comprehensive unit tests in
pytestfor the configuration loader.
Note: This PR is based on the new modular core structure and is intended to be reviewed/merged after the utils.py refactoring PR.