Coder Social home page Coder Social logo

travbid / mypyls Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matangover/mypyls

0.0 1.0 0.0 864 KB

Mypy language server: runs mypy on Python code to provide type checking, go to definition, and hover.

License: MIT License

Python 100.00%

mypyls's Introduction

Mypy Language Server

Runs mypy on Python code to provide type checking, go to definition, and hover.

Installation

Follow the installation instructions in Mypy extension for VS Code. Using the VS Code extension itself is not required -- the language server may be used with any editor that supports the Language Server Protocol.

Motivation

Why another language server for Python? There are already at least Palantir's python-language-server (uses jedi), pyright (uses analysis engine written in TypeScript), Microsoft's python-language-server (uses analysis engine written in C#), and PyCharm (does not provide language server conforming to Language Server Protocol; uses analysis engine written in Java).

Mypy has a robust type checking engine that is focused on correctness. Other IDE tools use custom analysis engines and the provided language features do not always match mypy's analysis. In a future where type-annotated Python is more common, it would be useful to have mypy's robust analysis provide the basis for IDE features as 'one source truth'. This language server is a proof of concept for that, although it is currently quite hacky and uses private mypy APIs. The mypy team might be working on an official integration in the future.

License

This project is made available under the MIT License. It is based on Palantir's python-language-server and uses mypy.

mypyls's People

Contributors

andfoy avatar andrew-christianson avatar brettcannon avatar cynerd avatar danalbert avatar evandrocoan avatar exploide avatar ferozco avatar gatesn avatar jamesthomp avatar karolx avatar kashewnuts avatar languitar avatar lgeiger avatar mariusvniekerk avatar matangover avatar mathieuduponchelle avatar mkorpela avatar mnazbro avatar muffinmad avatar nackjicholson avatar perrinjerome avatar pixystone avatar randy3k avatar rkiyanchuk avatar rupert avatar st4lk avatar talamuyal avatar tomv564 avatar tonich-sh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.