albumentations-team / albucore

A high-performance image processing library designed to optimize and extend the Albumentations library with specialized functions for advanced image transformations. Perfect for developers working in computer vision who require efficient and scalable image augmentation.
MIT License
12 stars 3 forks source link

Contigous checks output as well #25

Closed ternaus closed 3 months ago

ternaus commented 3 months ago

Summary by Sourcery

This pull request enhances the contiguous decorator to ensure that both input and output arrays are contiguous. It also updates several pre-commit hooks to their latest versions and adds tests to verify the functionality of the updated decorator.

sourcery-ai[bot] commented 3 months ago

Reviewer's Guide by Sourcery

This pull request enhances the contiguous decorator to ensure both input and output arrays are contiguous. Corresponding tests have been added to validate this functionality. Additionally, the versions of several pre-commit hooks have been updated.

File-Level Changes

Files Changes
tests/test_utils.py
albucore/utils.py
Enhanced the contiguous decorator to ensure both input and output arrays are contiguous and added corresponding tests to validate this functionality.
.pre-commit-config.yaml Updated versions of pre-commit hooks for pyproject-fmt, ruff-pre-commit, and mypy.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.
codecov-commenter commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (main@f3fd587). Learn more about missing BASE report.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #25 +/- ## ======================================= Coverage ? 55.97% ======================================= Files ? 14 Lines ? 1347 Branches ? 0 ======================================= Hits ? 754 Misses ? 593 Partials ? 0 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.