Closed Seluj78 closed 1 month ago
The recent updates introduce the FlaskUtils
class for enhanced error handling in Flask applications, replace the error handler registration function, and update the Sphinx documentation theme and requirements. Additionally, the validate_params
function now dynamically adjusts its behavior based on error handler registration. Tests have been added to verify the new functionality.
File(s) | Change Summary |
---|---|
docs/requirements.txt |
Added Pallets-Sphinx-Themes and updated sphinx-rtd-theme to 1.3.0rc1 . |
docs/source/api.rst |
Added Extension section for flask_utils.extension and _register_error_handlers function. |
docs/source/conf.py |
Changed HTML theme to "flask" and added "pallets_sphinx_themes" extension. |
flask_utils/__init__.py |
Updated __version__ to "0.5.0", removed register_error_handlers , added FlaskUtils . |
flask_utils/decorators.py |
Updated validate_params to dynamically choose error handling based on FlaskUtils . |
flask_utils/errors/__init__.py |
Renamed register_error_handlers to _register_error_handlers and updated documentation. |
flask_utils/extension.py |
Introduced FlaskUtils class with init_app method for error handler registration. |
tests/conftest.py |
Updated imports and replaced register_error_handlers call with FlaskUtils(app) . |
tests/test_extension.py |
Added tests for FlaskUtils , covering initialization and error handling registration. |
In the land of Flask, new utils arise,
With handlers for errors, a pleasant surprise.
Themes updated, docs now gleam,
Extensions tested, a developer's dream.
Version bumped, to five-oh we soar,
FlaskUtils now reigns, forevermore. 🌟
📚 Documentation preview 📚: https://flask-utils--26.org.readthedocs.build/en/26/
Summary by CodeRabbit
New Features
FlaskUtils
class for enhanced error handling and initialization in Flask applications.FlaskUtils
to ensure proper initialization and error handling.Bug Fixes
validate_params
function to dynamically choose error handling based onFlaskUtils
registration.Documentation
Extension
section and private API details.Chores
0.5.0
inflask_utils
.FlaskUtils
class.