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

completion: fix broken completion generation for zsh #9797

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

skshetry
Copy link
Member

@skshetry skshetry commented Aug 3, 2023

dvc commit --help was also completely broken, which is also fixed.

This adds unit tests for completion generation for both zsh/bash, and tests that --help works for all commands.
Closes #9796.

@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.23% ⚠️

Comparison is base (4067a86) 90.42% compared to head (1b476ae) 90.19%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9797      +/-   ##
==========================================
- Coverage   90.42%   90.19%   -0.23%     
==========================================
  Files         480      482       +2     
  Lines       36670    36719      +49     
  Branches     5291     5299       +8     
==========================================
- Hits        33158    33119      -39     
- Misses       2906     2972      +66     
- Partials      606      628      +22     
Files Changed Coverage Δ
dvc/commands/commit.py 80.76% <ø> (ø)
dvc/commands/completion.py 100.00% <100.00%> (+28.57%) ⬆️
tests/unit/command/test_completion.py 100.00% <100.00%> (ø)
tests/unit/command/test_help.py 100.00% <100.00%> (ø)

... and 26 files with indirect coverage changes

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!

@chenrui333
Copy link

gonna try out this patch in Homebrew/homebrew-core#138416

`dvc commit --help` was also completely broken, which is also fixed.

This adds unit tests for completion generation for both zsh/bash, and
tests that --help works for all commands.
@skshetry skshetry merged commit bc86fa0 into iterative:main Aug 4, 2023
18 checks passed
@skshetry skshetry deleted the fix-9796 branch August 4, 2023 03:36
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.

shell completion issue with dvc 3.11.0 release build
3 participants