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

fs: replace fs.path with plain fs methods #262

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Dec 15, 2023

After such a long time using it, it is clear that it wasn't the right decision and path manipulation methods should be right in the class. For now just moving things as they were, but might rethink particular implementations later.

This also makes it possible to use most of methods as classmethods without having to initialize the filesystem at all.

Per fsspec/filesystem_spec#747 (comment) and also a pre-requisite for it.

After such a long time using it, it is clear that it wasn't the right
decision and path manipulation methods should be right in the class.

This also makes it possible to use most of methods as classmethods without
having to initialize the filesystem at all.

Per fsspec/filesystem_spec#747 (comment) and also a pre-requisite for it.
@codecov-commenter
Copy link

codecov-commenter commented Dec 15, 2023

Codecov Report

Attention: 54 lines in your changes are missing coverage. Please review.

Comparison is base (c01921e) 64.16% compared to head (d2e0b44) 64.35%.

Files Patch % Lines
src/dvc_objects/fs/base.py 60.90% 40 Missing and 3 partials ⚠️
src/dvc_objects/fs/generic.py 0.00% 4 Missing ⚠️
src/dvc_objects/fs/local.py 55.55% 4 Missing ⚠️
src/dvc_objects/fs/utils.py 0.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #262      +/-   ##
==========================================
+ Coverage   64.16%   64.35%   +0.19%     
==========================================
  Files          27       26       -1     
  Lines        2051     2051              
  Branches      321      335      +14     
==========================================
+ Hits         1316     1320       +4     
+ Misses        675      672       -3     
+ Partials       60       59       -1     

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

@efiop efiop merged commit 4e6c334 into iterative:main Dec 15, 2023
16 checks passed
@efiop efiop self-assigned this Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants