mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-09 20:15:01 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6caae96314 |
45
.github/workflows/ci.yml
vendored
45
.github/workflows/ci.yml
vendored
@@ -3,10 +3,10 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
@@ -20,3 +20,44 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: 'make test'
|
run: 'make test'
|
||||||
|
|
||||||
|
code-quality:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
vim --version
|
||||||
|
make check
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
sudo add-apt-repository ppa:neovim-ppa/stable -y
|
||||||
|
sudo apt-get update -q
|
||||||
|
sudo apt-get install neovim -y
|
||||||
|
|
||||||
|
sudo pip install pynvim pytest-cov
|
||||||
|
sudo pip list
|
||||||
|
nvim --version
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
make --keep-going test_coverage BUILD_VIRTUAL_ENV=$VIRTUAL_ENV
|
||||||
|
|
||||||
|
- name: Upload coverage data
|
||||||
|
run: |
|
||||||
|
coverage xml
|
||||||
|
bash <(curl -s https://codecov.io/bash) -X fix -f coverage.xml -F py${TRAVIS_PYTHON_VERSION//./}
|
||||||
|
|||||||
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -1,6 +1,6 @@
|
|||||||
[submodule "jedi"]
|
[submodule "jedi"]
|
||||||
path = pythonx/jedi
|
path = pythonx/jedi
|
||||||
url = https://github.com/davidhalter/jedi.git
|
url = https://git.pick-up.group/VimPlug/jedi-fork.git
|
||||||
[submodule "pythonx/parso"]
|
[submodule "pythonx/parso"]
|
||||||
path = pythonx/parso
|
path = pythonx/parso
|
||||||
url = https://github.com/davidhalter/parso.git
|
url = https://git.pick-up.group/VimPlug/parso.git
|
||||||
|
|||||||
12
README.rst
12
README.rst
@@ -74,14 +74,14 @@ Installation
|
|||||||
Requirements
|
Requirements
|
||||||
------------
|
------------
|
||||||
- **Vim**: You need a VIM version that was compiled with Python 3 or later
|
- **Vim**: You need a VIM version that was compiled with Python 3 or later
|
||||||
(``+python3``). You can check this from within VIM using
|
(``+python3``). You can check this from within VIM using
|
||||||
``:python3 import sys; print(sys.version)``.
|
``:python3 import sys; print(sys.version)``.
|
||||||
|
|
||||||
- **Neovim**: You need a python environment with ``pynvim`` installed:
|
- **Neovim**: You need a python environment with ``pynvim`` installed:
|
||||||
``pip install pynvim``
|
``pip install pynvim``
|
||||||
|
|
||||||
then check your environment is correctly setup from within Neovim using
|
then check your environment is correctly setup from within Neovim using
|
||||||
``:checkhealth provider.python``
|
``:checkhealth provider.python``
|
||||||
|
|
||||||
Manual installation
|
Manual installation
|
||||||
-------------------
|
-------------------
|
||||||
@@ -114,7 +114,7 @@ Installation with your distribution
|
|||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
|
||||||
On Arch Linux, you can also install jedi-vim from official repositories as
|
On Arch Linux, you can also install jedi-vim from official repositories as
|
||||||
`vim-jedi <https://archlinux.org/packages/extra/any/vim-jedi/>`__.
|
`vim-jedi <https://www.archlinux.org/packages/community/any/vim-jedi/>`__.
|
||||||
It is also available on
|
It is also available on
|
||||||
`Debian (≥8) <https://packages.debian.org/vim-python-jedi>`__ and
|
`Debian (≥8) <https://packages.debian.org/vim-python-jedi>`__ and
|
||||||
`Ubuntu (≥14.04) <http://packages.ubuntu.com/vim-python-jedi>`__ as
|
`Ubuntu (≥14.04) <http://packages.ubuntu.com/vim-python-jedi>`__ as
|
||||||
|
|||||||
Submodule pythonx/jedi updated: 41e9e957e7...b908cf8f1d
Submodule pythonx/parso updated: be9f5a401f...ee5edaf22f
@@ -52,6 +52,19 @@ describe 'completions'
|
|||||||
Expect getline('.') == 'IndentationError().filename'
|
Expect getline('.') == 'IndentationError().filename'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'multi complete'
|
||||||
|
" NOTE: nvim results in "importErr()" here with completeopt+=longest,
|
||||||
|
" but Vim is fine.
|
||||||
|
" This is due to `pumvisible()` in jedi#complete_opened being true
|
||||||
|
" with nvim still, but it is 0 with Vim, i.e. Vim appears to close
|
||||||
|
" the pum already (with the tests).
|
||||||
|
"
|
||||||
|
" This might be a misunderstanding though, since the test might not
|
||||||
|
" expect the "import" keyword to be offered for completion?!
|
||||||
|
normal oImpXErrX()
|
||||||
|
Expect getline('.') == 'ImportError()'
|
||||||
|
end
|
||||||
|
|
||||||
it 'cycling through entries popup_select_first=0'
|
it 'cycling through entries popup_select_first=0'
|
||||||
set completeopt+=longest
|
set completeopt+=longest
|
||||||
let g:jedi#popup_select_first = 0
|
let g:jedi#popup_select_first = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user