Skip to content
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

fix: use OS-independent PatternPath for items #81

Merged
merged 5 commits into from
Jan 17, 2025

Conversation

christian-monch
Copy link
Contributor

This is a large PR that introduces the type PatternPath (an alias of PurePosixPath), which is used to address items within a dataset, i.e. subdatasets, directories, and files.

This should allow the code to work uniformly on platforms with non-Unix path conventions, i.e. Windows.

This is a large commit that introduces the type
`PatternPath` (an alias of `PurePosixPath`), which is
used to address items within a dataset, i.e.
subdatasets, directories, and files.

This should allow the code to work on platforms
with non-Unix path conventions, i.e. Windows.
@christian-monch christian-monch changed the title enh: use OS-independent PatternPath for items style: use OS-independent PatternPath for items Jan 16, 2025
This commit robustifies file-URL management
to make it work properly in Windows and Posix
environments.
@codecov-commenter
Copy link

codecov-commenter commented Jan 17, 2025

Codecov Report

Attention: Patch coverage is 98.18182% with 1 line in your changes missing coverage. Please review.

Project coverage is 91.30%. Comparing base (b45cb22) to head (7fc9d73).

Files with missing lines Patch % Lines
datalad_remake/commands/provision_cmd.py 95.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #81      +/-   ##
==========================================
- Coverage   91.60%   91.30%   -0.30%     
==========================================
  Files          25       26       +1     
  Lines        1060     1081      +21     
  Branches       87       87              
==========================================
+ Hits          971      987      +16     
- Misses         63       65       +2     
- Partials       26       29       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@christian-monch christian-monch changed the title style: use OS-independent PatternPath for items fix: use OS-independent PatternPath for items Jan 17, 2025
@christian-monch christian-monch merged commit 4e44a2a into datalad:main Jan 17, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants