Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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/)

Awesome Lists containing this project

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.