Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Integralist/vim-mypy
Vim plugin for executing Python's optional static type checker MyPy (http://mypy-lang.org/)
https://github.com/Integralist/vim-mypy
checker mypy open-source plugin static-analysis vim vim-mypy vim-plugins
Last synced: about 1 month ago
JSON representation
Vim plugin for executing Python's optional static type checker MyPy (http://mypy-lang.org/)
- Host: GitHub
- URL: https://github.com/Integralist/vim-mypy
- Owner: Integralist
- License: mit
- Created: 2017-01-16T08:12:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-08T22:47:57.000Z (about 5 years ago)
- Last Synced: 2024-04-22T12:32:39.308Z (8 months ago)
- Topics: checker, mypy, open-source, plugin, static-analysis, vim, vim-mypy, vim-plugins
- Language: VimL
- Size: 3.91 KB
- Stars: 98
- Watchers: 3
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-python-typing - vim-mypy - Mypy integration for Vim. (Integrations / Mypy plugins)
README
# vim-mypy
Vim plugin for executing Python's optional static type checker [MyPy](http://mypy-lang.org/)
## Example
```py
def example(n: int) -> str:
print(type(n))
return 'hello'example("a") # << incorrect, we've passed a String and not an Integer
```To trigger the plugin, execute either `:Mypy` or the mapping `mp`
## Install
### [Pathogen](https://github.com/tpope/vim-pathogen)
```bash
git clone https://github.com/integralist/vim-mypy ~/.vim/bundle/vim-mypy
```### [Vundle](https://github.com/gmarik/vundle)
```
Plugin 'integralist/vim-mypy'
```## Alternatives
It seems both [Syntastic](https://github.com/vim-syntastic/syntastic) and [Neomake](https://github.com/neomake/neomake) include support for MyPy.