Closed Seluj78 closed 1 month ago
The updates primarily focus on enhancing the flask_utils
module by adding a new utility function is_it_true
and updating dependencies to support newer Flask versions. Documentation has been expanded to include this new utility, and the test suite has been updated accordingly. Changes to the GitHub workflow and tox.ini
file ensure compatibility with these updates and streamline testing across different Python and Flask versions.
Files | Change Summaries |
---|---|
.github/workflows/tests.yml |
Modified TOX_ENV variable setting to dynamically retrieve available tox environments. |
docs/requirements.txt , requirements.txt |
Updated Flask version requirement from >=2.0.0 to >=2.2.0 . |
docs/source/api.rst |
Added a new section for flask_utils.utils in the documentation. |
flask_utils/__init__.py |
Updated module version to "0.4.0" and added is_it_true function import. |
flask_utils/utils.py |
Introduced is_it_true(value: str) -> bool function to determine truthiness of string values. |
tests/test_utils.py |
Added test cases for is_it_true function and a fixture to set up a Flask route for testing. |
tox.ini |
Updated envlist to remove older Flask versions and adjusted dependencies for newer versions. |
sequenceDiagram
participant User
participant FlaskApp
participant is_it_true
User->>FlaskApp: Send request with query parameter
FlaskApp->>is_it_true: Call is_it_true with query parameter value
is_it_true-->>FlaskApp: Return boolean result
FlaskApp-->>User: Return JSON response with boolean result
In the land of code so bright, A rabbit hops with pure delight. 🐇 New truths in Flask now we see, With
is_it_true
, clarity! Tests and docs, all in line, Version bumps, oh so fine. Tox and workflows, all set right, CodeRabbit brings the light! 🌟
Also added documentation and tests to go along with it
📚 Documentation preview 📚: https://flask-utils--24.org.readthedocs.build/en/24/
Summary by CodeRabbit
New Features
is_it_true
for handling truthy string values in Flask.Documentation
flask_utils.utils
.Bug Fixes
>=2.2.0
in documentation and requirements files.Tests
is_it_true
function, including various input strings and Flask route testing.Chores
tox
configuration to adjust environment lists and dependencies for Flask versions 2.2, 2.3, and 3.0.