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

RF: remove unused code str-ing PurePath #7073

Merged
merged 3 commits into from
Oct 8, 2022

Conversation

yarikoptic
Copy link
Member

Is of no use since we operate on path_ not path down below that block. Originally introduced in b0258db (#3191).

Should be safe since RI which is coming next can take Path just fine:

❯ python -c 'from pathlib import Path; from datalad.support.network import RI; print(repr(RI(Path("/home"))))'
PathRI(path='/home')
❯ python -c 'from pathlib import Path; from datalad.support.network import RI; print(repr(RI("/home")))'
PathRI(path='/home')

Is of no use since we operate on path_ not path down below that block.
Originally introduced in b0258db (datalad#3191).

Should be safe since RI which is coming next can take Path just fine:

	❯ python -c 'from pathlib import Path; from datalad.support.network import RI; print(repr(RI(Path("/home"))))'
	PathRI(path='/home')
	❯ python -c 'from pathlib import Path; from datalad.support.network import RI; print(repr(RI("/home")))'
	PathRI(path='/home')
@codecov
Copy link

codecov bot commented Oct 7, 2022

Codecov Report

Base: 74.76% // Head: 75.46% // Increases project coverage by +0.69% 🎉

Coverage data is based on head (6afb153) compared to base (748e5c6).
Patch has no changes to coverable lines.

❗ Current head 6afb153 differs from pull request most recent head 848d2c7. Consider uploading reports for the commit 848d2c7 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##            maint    #7073      +/-   ##
==========================================
+ Coverage   74.76%   75.46%   +0.69%     
==========================================
  Files         354      354              
  Lines       58945    58946       +1     
  Branches     6310     6309       -1     
==========================================
+ Hits        44072    44482     +410     
+ Misses      14858    14449     -409     
  Partials       15       15              
Impacted Files Coverage Δ
datalad/dataset/repo.py 96.20% <ø> (+0.81%) ⬆️
datalad/metadata/extractors/xmp.py 12.96% <0.00%> (-79.63%) ⬇️
datalad/metadata/extractors/tests/test_xmp.py 40.00% <0.00%> (-37.15%) ⬇️
datalad/metadata/extract_metadata.py 69.44% <0.00%> (-30.56%) ⬇️
datalad/metadata/tests/test_extract_metadata.py 36.84% <0.00%> (-29.83%) ⬇️
datalad/downloaders/tests/utils.py 92.30% <0.00%> (-7.70%) ⬇️
datalad/cmd.py 67.75% <0.00%> (-7.59%) ⬇️
datalad/runner/coreprotocols.py 94.73% <0.00%> (-5.27%) ⬇️
datalad/support/keyring_.py 90.47% <0.00%> (-4.77%) ⬇️
datalad/conftest.py 88.88% <0.00%> (-4.63%) ⬇️
... and 59 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@yarikoptic yarikoptic added CHANGELOG-missing When a PR's description does not contain a changelog item, yet. semver-patch Increment the patch version when merged semver-internal Changes only affect the internal API labels Oct 7, 2022
@github-actions github-actions bot removed the CHANGELOG-missing When a PR's description does not contain a changelog item, yet. label Oct 7, 2022
@yarikoptic yarikoptic added CHANGELOG-missing When a PR's description does not contain a changelog item, yet. and removed semver-patch Increment the patch version when merged labels Oct 7, 2022
@github-actions github-actions bot removed the CHANGELOG-missing When a PR's description does not contain a changelog item, yet. label Oct 7, 2022
@bpoldrack bpoldrack merged commit 6d2a8bd into datalad:maint Oct 8, 2022
@yarikoptic yarikoptic deleted the bf-unused branch October 14, 2022 12:59
@yarikoptic-gitmate
Copy link
Collaborator

PR released in 0.17.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-internal Changes only affect the internal API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants