Skip to content

Type-annotate various things in datalad/runner/ #7337

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

Merged
merged 5 commits into from
Mar 24, 2023

Conversation

jwodder
Copy link
Member

@jwodder jwodder commented Mar 16, 2023

Part of #6884.

@jwodder jwodder added semver-internal Changes only affect the internal API CHANGELOG-missing When a PR's description does not contain a changelog item, yet. labels Mar 16, 2023
@jwodder jwodder changed the title Type-annotate WitlessProtocol Type-annotate various things in datalad/runner/ Mar 16, 2023
@github-actions github-actions bot removed the CHANGELOG-missing When a PR's description does not contain a changelog item, yet. label Mar 16, 2023
Copy link
Contributor

@christian-monch christian-monch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. Thanks a lot at @jwodder.

I have got only a few comments.


def close(self):
pass
fake_file = MagicMock(**{"fileno.return_value": -1, "close.return_value": None})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@codecov
Copy link

codecov bot commented Mar 21, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +1.96 🎉

Comparison is base (06d6b55) 88.69% compared to head (20e053a) 90.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##            maint    #7337      +/-   ##
==========================================
+ Coverage   88.69%   90.66%   +1.96%     
==========================================
  Files         327      327              
  Lines       44527    44581      +54     
  Branches     5910     5907       -3     
==========================================
+ Hits        39495    40418     +923     
+ Misses       5017     4148     -869     
  Partials       15       15              
Impacted Files Coverage Δ
datalad/runner/nonasyncrunner.py 98.12% <ø> (ø)
datalad/cmd.py 93.65% <100.00%> (-0.12%) ⬇️
datalad/runner/coreprotocols.py 100.00% <100.00%> (ø)
datalad/runner/exception.py 100.00% <100.00%> (ø)
datalad/runner/protocol.py 97.18% <100.00%> (+0.12%) ⬆️
datalad/runner/runnerthreads.py 97.50% <100.00%> (ø)
datalad/runner/tests/test_exception.py 100.00% <100.00%> (ø)
datalad/runner/tests/test_generatormixin.py 96.38% <100.00%> (+0.08%) ⬆️
datalad/runner/tests/test_gitrunner.py 100.00% <100.00%> (ø)
datalad/runner/tests/test_nonasyncrunner.py 99.00% <100.00%> (+0.02%) ⬆️
... and 5 more

... and 23 files with indirect coverage changes

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 in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@yarikoptic
Copy link
Member

Was approved and looks good to me -- let's proceed. Thank you @jwodder !

@yarikoptic yarikoptic merged commit 362834f into datalad:maint Mar 24, 2023
@yarikoptic-gitmate
Copy link
Collaborator

PR released in 0.18.3

@jwodder jwodder deleted the type-witlessprotocol branch May 12, 2023 19:38
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.

4 participants