Comparing mgorven:main...cuenca-mx:main · mgorven/clabe-python
Commits on Dec 26, 2024
-
Add configure_additional_bank Functionality and Bump Version to 1.2.17 (
cuenca-mx#169) * ci: add Codecov token to workflow configuration * feat: add error handling for existing bank codes and names * ci: update GitHub Actions workflow to use new action versions * chore: bump version to 1.2.17.dev1 * chore: update GitHub Actions workflows for release and testing * fix: update PyPI token reference in GitHub Actions workflow * fix: update PyPI token reference in release workflow to use PYPI_API_TOKEN * refactor: rename and update error classes for bank code validation * feat: add configure_additional_bank function and corresponding tests * docs: update README to include instructions for add a new bank * chore: bump version to 1.2.17.dev2 * chore: bump version to 1.2.17 * chore: update GitHub Actions workflows for release and testing * fix: update PyPI token reference in GitHub Actions workflow * fix: update PyPI token reference in release workflow to use PYPI_API_TOKEN * refactor: rename and update error classes for bank code validation * feat: add configure_additional_bank function and corresponding tests * docs: update README to include instructions for add a new bank * chore: bump version to 1.2.17.dev2 * chore: bump version to 1.2.17 * feat: enhance configure_additional_bank with input validation * refactor: streamline bank configuration by replacing error classes with Pydantic model validation * refactor: update BankConfigRequest model and validation logic for bank codes - Replaced bank_code_abm with a derived property from bank_code_banxico. - Enhanced validation for bank_code_banxico to ensure it is exactly 5 digits. - Updated tests to reflect changes in bank configuration logic and validation rules. * feat: add remove_bank function to manage bank entries * docs: update README to include instructions for adding a new bank * refactor: rename configure_additional_bank to add_bank and update validation logic - Refactored the add_bank function to improve clarity and validation. - Updated tests to align with the new function name and validation rules. * docs: update README to reflect function name change from configure_additional_bank to add_bank --------- Co-authored-by: gabino <gabino@cuenca.com>
Commits on Dec 30, 2024
-
Update/pydantic v2 (cuenca-mx#171)
* Upgrade Python version requirements and dependencies - Updated Python version from 3.7 to 3.8 in Makefile and README.md. - Upgraded Pydantic dependency from 1.9.0 to 2.10.3 in requirements.txt and setup.py. - Updated mypy version from 0.790 to 1.13.0 in requirements-test.txt. - Refactored CLABE validation logic in types.py, removing custom error classes and integrating Pydantic's validation features. - Removed unused error handling code and updated tests to reflect changes in validation logic. - Updated GitHub Actions workflow to support Python versions 3.8 through 3.13. - Bumped version to 2.0.0.dev0 in version.py. * Update GitHub Actions workflow to use string format for Python versions * Update GitHub Actions workflow to include Python 3.13 in the testing * Add python version actions (cuenca-mx#172) * Add python version actions * Update test.yml * update test deps --------- Co-authored-by: Felipe López <flh.1989@gmail.com> * Upgrade Python version requirements and dependencies - Updated Python version from 3.7 to 3.8 in Makefile and README.md. - Upgraded Pydantic dependency from 1.9.0 to 2.10.3 in requirements.txt and setup.py. - Updated mypy version from 0.790 to 1.13.0 in requirements-test.txt. - Refactored CLABE validation logic in types.py, removing custom error classes and integrating Pydantic's validation features. - Removed unused error handling code and updated tests to reflect changes in validation logic. - Updated GitHub Actions workflow to support Python versions 3.8 through 3.13. - Bumped version to 2.0.0.dev0 in version.py. * Changed regex to pattern in BankConfigRequest model * Update README; bump version to 2.0.0 * Update GitHub Actions workflow to remove Python 3.7 from the testing matrix, supporting versions 3.8 through 3.13. * This change enhances compatibility with Pydantic V2 and streamlines error handling. * Update setup.py to require Python 3.8 and bump version to 2.0.0 * Enhance README with Pydantic v2 usage examples and update CLABE validation logic * Fix code block formatting in README.md for Pydantic example * Removing redundant test case --------- Co-authored-by: gabino <gabino@cuenca.com> Co-authored-by: Pach <arturo@cuenca.com> Co-authored-by: Felipe López <flh.1989@gmail.com>
4 people authored
Dec 30, 2024