Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a setup.py command as a way to invoke mypy #992

Closed
gnprice opened this issue Nov 24, 2015 · 0 comments · Fixed by rowillia/mypy#1
Closed

Add a setup.py command as a way to invoke mypy #992

gnprice opened this issue Nov 24, 2015 · 0 comments · Fixed by rowillia/mypy#1

Comments

@gnprice
Copy link
Collaborator

gnprice commented Nov 24, 2015

Like python setup.py flake8. This would be a nice and convenient way for many people to use mypy without worrying about the details of our CLI.

The API for making this happen is undocumented:
http://pythonhosted.org/setuptools/setuptools.html#subclassing-command
but flake8 makes a nice example:
https://gitlab.com/pycqa/flake8/blob/master/flake8/main.py#L82
https://gitlab.com/pycqa/flake8/blob/master/setup.py#L57
that suggests it shouldn't be too complicated.

Blocks on #935.

rowillia pushed a commit to rowillia/mypy that referenced this issue Nov 24, 2015
By default, this will typecheck all of the package modules.
We still need to figure out how to handle third-party modules.
Passing in `--mypy-args="--use-python-path"` will also include
any dependent modules, but nearly all of them fail to typecheck.

This will fix python#992
rowillia pushed a commit to rowillia/mypy that referenced this issue Nov 24, 2015
By default, this will typecheck all of the package modules.
We still need to figure out how to handle third-party modules.
Passing in `--mypy-args="--use-python-path"` will also include
any dependent modules, but nearly all of them fail to typecheck.

This will fix python#992
rowillia pushed a commit to rowillia/mypy that referenced this issue Nov 24, 2015
By default, this will typecheck all of the package modules.
We still need to figure out how to handle third-party modules.
Passing in `--mypy-args="--use-python-path"` will also include
any dependent modules, but nearly all of them fail to typecheck.

This will fix python#992
rowillia pushed a commit to rowillia/mypy that referenced this issue Nov 25, 2015
By default, this will typecheck all of the package modules.
We still need to figure out how to handle third-party modules.
Passing in `--mypy-args="--use-python-path"` will also include
any dependent modules, but nearly all of them fail to typecheck.

This will fix python#992
@JukkaL JukkaL closed this as completed in 7e42ac8 Dec 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant