Releases: gruncellka/porto-data
Releases · gruncellka/porto-data
v0.1.0 - Unified CLI and Refactoring
- Unified
portoCLI command (replaces standalone Python scripts) - New CLI subcommands:
porto validate- Validate JSON schemas and data linksporto validate --type schema- Validate JSON against schemasporto validate --type links- Validate data_links.json consistencyporto validate --type links --analyze- Detailed links analysisporto metadata- Generate metadata.json with checksums
- Comprehensive test suite (107 tests, 87% coverage)
- Codecov integration for coverage tracking
- Test coverage reporting in CI/CD pipeline
scripts/validators/package with modular validation architecturescripts/data_files.py- Centralized data file management- Type-safe validation results with
ValidationResultsTypedDict - Shared validation helpers in
scripts/validators/helpers.py
Changed
- BREAKING: All imports now use proper
scripts.*package paths- Old:
from validators.links import ... - New:
from scripts.validators.links import ...
- Old:
- Refactored validation logic into organized modules:
scripts/validators/schema.py- JSON schema validationscripts/validators/links.py- Data links validationscripts/validators/base.py- Type definitions
- Removed
sys.pathhacks in favor of proper package imports (full IDE support) - Pre-commit hooks now format test files (
tests/) andmetadata.json - Improved error messages and validation output
- CLI version now reads from package metadata (single source of truth)
Technical
- Modular validation architecture with clear separation of concerns
- All imports resolvable by IDEs (syntax highlighting works)
- Removed E402 lint exceptions (no longer needed)
- Updated type checking to include both
scripts/andcli/directories - Centralized path constants in
scripts/data_files.py - Fail-fast validation of required entities at import time
- Improved test fixtures and utilities in
tests/conftest.py
Fixed
- IDE syntax highlighting for all imports
- Type checking errors with proper package imports
- Pre-commit hooks now catch formatting issues in test files
metadata.jsonnow automatically formatted on commit