-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Comments
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
This was referenced Nov 24, 2015
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Like
python setup.py flake8
. This would be a nice and convenient way for many people to usemypy
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.
The text was updated successfully, but these errors were encountered: