fmi-faim / faim-ipa

A collection of Image Processing and Analysis (IPA) functions used at the Facility for Advanced Imaging and Microscopy (FAIM)
BSD 3-Clause "New" or "Revised" License
9 stars 6 forks source link

Avoid endless loop in `get_git_root` #196

Closed imagejan closed 1 week ago

imagejan commented 1 week ago

Also, Path(__file__) leads to incorrect behavior when the environment (and therefore the imported faim_ipa package) is outside the project repository.

This can happen when using pixi config with detached-environments=true.

So, let's use the current working directory instead.

codecov[bot] commented 1 week ago

Codecov Report

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

Project coverage is 92.75%. Comparing base (02a43e9) to head (3edb054). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #196 +/- ## ========================================== - Coverage 92.80% 92.75% -0.05% ========================================== Files 64 64 Lines 3918 3920 +2 Branches 245 246 +1 ========================================== Hits 3636 3636 - Misses 268 269 +1 - Partials 14 15 +1 ```

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