generated from metwork-framework/mfextaddon_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade jedi-vim to 0.11.2 (#85)
- Loading branch information
1 parent
59afe41
commit 707060f
Showing
31 changed files
with
1,811 additions
and
690 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
layers/layer4_vim/0021_configvim/vim/bundle/jedi-vim/.coveragerc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[run] | ||
branch = 1 | ||
# Used by/for neovim-python-client. | ||
concurrency = greenlet | ||
|
||
[report] | ||
include = pythonx/jedi_*.py,test/* |
33 changes: 23 additions & 10 deletions
33
layers/layer4_vim/0021_configvim/vim/bundle/jedi-vim/.travis.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,31 @@ | ||
sudo: false | ||
dist: bionic | ||
language: python | ||
python: 3.8 | ||
env: | ||
matrix: | ||
- ENV=test | ||
- ENV=check | ||
matrix: | ||
allow_failures: | ||
# Needs to be fixed! | ||
- env: ENV=test | ||
- ENV=test | ||
- ENV=check | ||
- ENV=test_coverage | ||
install: | ||
- | | ||
if [ "$ENV" = "test" ]; then | ||
pip install pytest | ||
elif [ "$ENV" = "test_coverage" ]; then | ||
sudo add-apt-repository ppa:neovim-ppa/stable -y | ||
sudo apt-get update -q | ||
sudo apt-get install neovim -y | ||
pip install pynvim pytest-cov | ||
pip list | ||
nvim --version | ||
else | ||
vim --version | ||
fi | ||
script: | ||
- vim --version | ||
- make "$ENV" | ||
- make --keep-going "$ENV" BUILD_VIRTUAL_ENV=$VIRTUAL_ENV | ||
|
||
after_script: | ||
- | | ||
if [ "$ENV" = "test_coverage" ]; then | ||
coverage xml | ||
travis_retry bash <(curl -s https://codecov.io/bash) -X fix -f coverage.xml -F py${TRAVIS_PYTHON_VERSION//./} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 30 additions & 11 deletions
41
layers/layer4_vim/0021_configvim/vim/bundle/jedi-vim/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,35 @@ | ||
BUILD_VIRTUAL_ENV:=build/venv | ||
|
||
test: | ||
py.test | ||
pytest | ||
|
||
test_nvim: | ||
VSPEC_VIM=nvim pytest | ||
|
||
test_coverage: export PYTEST_ADDOPTS:=--cov pythonx --cov test --cov-report=term-missing:skip-covered | ||
test_coverage: test_nvim | ||
|
||
$(dir $(BUILD_VIRTUAL_ENV)): | ||
mkdir -p $@ | ||
|
||
$(BUILD_VIRTUAL_ENV): | $(dir $(BUILD_VIRTUAL_ENV)) | ||
python -m venv $@ | ||
|
||
$(BUILD_VIRTUAL_ENV)/bin/vint: | $(BUILD_VIRTUAL_ENV) | ||
$|/bin/python -m pip install vim-vint==0.3.21 | ||
|
||
$(BUILD_VIRTUAL_ENV)/bin/flake8: | $(BUILD_VIRTUAL_ENV) | ||
$|/bin/python -m pip install -q flake8==3.7.8 | ||
|
||
vint: $(BUILD_VIRTUAL_ENV)/bin/vint | ||
$(BUILD_VIRTUAL_ENV)/bin/vint after autoload ftplugin plugin | ||
|
||
flake8: $(BUILD_VIRTUAL_ENV)/bin/flake8 | ||
$(BUILD_VIRTUAL_ENV)/bin/flake8 pythonx/jedi_*.py | ||
|
||
build: | ||
mkdir $@ | ||
build/vint: | build | ||
virtualenv $@ | ||
$@/bin/pip install vim-vint | ||
check: LINT_FILES:=after autoload ftplugin plugin | ||
check: build/vint | ||
build/vint/bin/vint $(LINT_FILES) | ||
check: vint flake8 | ||
|
||
clean: | ||
rm -rf .cache build | ||
rm -rf build | ||
|
||
.PHONY: test check clean | ||
.PHONY: test check clean vint flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 2 additions & 22 deletions
24
layers/layer4_vim/0021_configvim/vim/bundle/jedi-vim/after/ftplugin/python/jedi.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,3 @@ | ||
if !jedi#init_python() | ||
finish | ||
endif | ||
|
||
if g:jedi#auto_initialization | ||
if g:jedi#completions_enabled | ||
" We need our own omnifunc, so this overrides the omnifunc set by | ||
" $VIMRUNTIME/ftplugin/python.vim. | ||
setlocal omnifunc=jedi#completions | ||
|
||
" map ctrl+space for autocompletion | ||
if g:jedi#completions_command ==# '<C-Space>' | ||
" In terminals, <C-Space> sometimes equals <Nul>. | ||
imap <buffer> <Nul> <C-Space> | ||
smap <buffer> <Nul> <C-Space> | ||
endif | ||
if len(g:jedi#completions_command) | ||
execute 'inoremap <expr> <buffer> '.g:jedi#completions_command.' jedi#complete_string(0)' | ||
" A separate mapping for select mode: deletes and completes. | ||
execute 'snoremap <expr> <buffer> '.g:jedi#completions_command." '\<C-g>c'.jedi#complete_string(0)" | ||
endif | ||
endif | ||
if jedi#init_python() && g:jedi#auto_initialization && g:jedi#completions_enabled | ||
call jedi#setup_completion() | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.