iterative / shtab

↔️ Automagic shell tab completion for Python CLI applications
https://docs.iterative.ai/shtab
Other
375 stars 34 forks source link

search curdir for modules #17

Closed casperdcl closed 4 years ago

casperdcl commented 4 years ago

Removes needing to alter PYTHONPATH to expose scripts/packages in the current working directory

$ ls
script.py
$ shtab -u script.parser > script_completion.sh
...
ModuleNotFoundError: No module named 'script'
$ PYTHONPATH=. shtab -u script.parser > script_completion.sh  # works
$ pip install -U 'git+https://github.com/iterative/shtab@545b03c#egg=shtab'  # this PR
$ shtab -u script.parser > script_completion.sh  # works
codecov-commenter commented 4 years ago

Codecov Report

Merging #17 into master will increase coverage by 1.54%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #17      +/-   ##
==========================================
+ Coverage   85.29%   86.84%   +1.54%     
==========================================
  Files           1        1              
  Lines          34       38       +4     
==========================================
+ Hits           29       33       +4     
  Misses          5        5              
Impacted Files Coverage Δ
shtab/main.py 86.84% <100.00%> (+1.54%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f9b0795...545b03c. Read the comment docs.

casperdcl commented 4 years ago

/tag v1.2.0 82cf362b