Closed edenhaus closed 3 months ago
The recent changes enhance the configuration and functionality of the deebot_client
module. Key modifications include activating the --unsafe-fixes
option in the pre-commit hook for improved linting, upgrading the HTTP request timeout management to utilize ClientTimeout
, and updating the version of the aiohttp
library. These updates aim to improve code quality, robustness, and compatibility within the project.
File | Change Summary |
---|---|
.pre-commit-config.yaml |
Activated --unsafe-fixes option for ruff to enable broader automatic code fixes. |
deebot_client/authentication.py |
Changed _TIMEOUT variable from a static integer to a ClientTimeout object for more flexible timeout settings. |
deebot_client/exceptions.py |
Updated ApiTimeoutError constructor to accept ClientTimeout instead of int for improved type safety. |
requirements.txt |
Updated aiohttp version constraint from 3.9 to 3.10 to leverage new features and improvements. |
tests/test_command.py |
Modified test for ApiTimeoutError to instantiate with a ClientTimeout object, enhancing clarity and functionality. |
sequenceDiagram
participant User
participant API
participant TimeoutHandler
User->>API: Send request
API->>TimeoutHandler: Check timeout
TimeoutHandler->>API: Return ClientTimeout
API-->>User: Return response
🐰 In code we hop, with fixes anew,
Linting's more friendly, our paths are now true.
Timeouts are clearer, no more guessing delays,
With aiohttp's upgrade, we'll dance through the maze!
Hooray for our changes, let’s celebrate cheer,
For smoother connections, let’s all give a cheer! 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 86.45%. Comparing base (
3d97412
) to head (fd394ac
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary by CodeRabbit
New Features
Bug Fixes
ClientTimeout
object.Chores