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

PR: Add command line support for Mypy #337

Merged
merged 7 commits into from
Apr 23, 2022

Conversation

CAM-Gerlach
Copy link
Member

@CAM-Gerlach CAM-Gerlach commented Apr 19, 2022

Adds a CLI to inject the appropriate arguments into a user's Mypy invocation to ensure proper type checking. Also provides an easy way to check the currently selected Qt binding and QtPy's version.

This is based on #217 , rebased and updated for QtPy 2.x, with a number of other improvements, fixes and refinements.

Fixes #216
Closes #217

@CAM-Gerlach
Copy link
Member Author

Going to need #335 for tests to pass here, BTW

@CAM-Gerlach CAM-Gerlach added this to the v2.1.0 milestone Apr 19, 2022
@CAM-Gerlach CAM-Gerlach linked an issue Apr 19, 2022 that may be closed by this pull request
@CAM-Gerlach CAM-Gerlach requested a review from ccordoba12 April 19, 2022 07:23
@CAM-Gerlach CAM-Gerlach mentioned this pull request Apr 19, 2022
3 tasks
Copy link
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @CAM-Gerlach ! Left some comments regarding the description in the README for the command and a missing header for a file otherwise this LGTM 👍

qtpy/__main__.py Show resolved Hide resolved
README.md Show resolved Hide resolved
@CAM-Gerlach CAM-Gerlach requested a review from dalthviz April 21, 2022 05:26
Copy link
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @CAM-Gerlach for your help with this! I left some minor comments, otherwise looks good to me.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @CAM-Gerlach!

@ccordoba12 ccordoba12 changed the title PR: Mypy CLI support, round 2 PR: Add command line support for Mypy Apr 23, 2022
@ccordoba12 ccordoba12 merged commit 936e0c9 into spyder-ide:master Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support type hints and mypy
4 participants