-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path sanitization hotfix #107
Conversation
Warning Rate limit exceeded@talmo has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 8 minutes and 37 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughThe recent updates focus on enhancing the Changes
Poem
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- sleap_io/io/slp.py (1 hunks)
- sleap_io/version.py (1 hunks)
Files skipped from review due to trivial changes (1)
- sleap_io/version.py
Additional comments not posted (2)
sleap_io/io/slp.py (2)
68-68
: Path normalization for cross-platform compatibility.The line
video_path = video_path.replace("\\", "/")
ensures that paths are compatible across different operating systems. This is crucial for environments that do not support Windows-style paths.
70-70
: Conversion to Path object.Converting
video_path
to aPath
object usingPath(video_path)
is a good practice for handling file paths in a platform-independent manner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- environment.yml (1 hunks)
- pyproject.toml (1 hunks)
Additional comments not posted (6)
environment.yml (5)
8-8
: Consider potential compatibility issues withffmpeg
.Removing the version constraint for
ffmpeg
allows for greater flexibility but may introduce compatibility issues with other dependencies.Ensure that the latest versions of
ffmpeg
are compatible with the rest of the dependencies.
10-10
: LGTM!Updating the version constraint for
imageio-ffmpeg
to require a minimum version of0.5.0
ensures compatibility with newer features or fixes.
15-15
: LGTM!Retaining the minimum version requirement for
h5py
ensures that the environment uses a version that meets the necessary functionality.
17-17
: LGTM!Constraining
numpy
to versions below2.0.0
may be necessary to maintain compatibility with other libraries.
18-18
: Consider potential compatibility issues withopencv
.Removing the version constraint for
opencv
allows for greater flexibility but may introduce compatibility issues with other dependencies.Ensure that the latest versions of
opencv
are compatible with the rest of the dependencies.pyproject.toml (1)
31-31
: LGTM!Updating the version constraint for
imageio-ffmpeg
to require a minimum version of0.5.0
ensures compatibility with newer features or fixes.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #107 +/- ##
==========================================
- Coverage 96.11% 96.01% -0.10%
==========================================
Files 17 17
Lines 2032 2035 +3
==========================================
+ Hits 1953 1954 +1
- Misses 79 81 +2 ☔ View full report in Codecov by Sentry. |
Fixes root issue in #106: we need to manually replace
\\
with/
when on Linux, but Windows paths are stored, and running on a platform that doesn't support it (e.g., our networked NetApp).Summary by CodeRabbit
Bug Fixes
Chores