-
Notifications
You must be signed in to change notification settings - Fork 38
Add type hints and make mypy compatible #192
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 type hints and make mypy compatible #192
Conversation
enable mypy check enable test and linting check on pull request drop python2 support Closes PaulSchweizer#189
3efadd0 to
bd6af40
Compare
.github/workflows/pylint.yml
Outdated
| @@ -1,6 +1,6 @@ | |||
| name: Pylint | |||
|
|
|||
| on: [push] | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't push also "include" pull_request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually it's best practice to specify which branches should be the target for both pushes and pull requests. Otherwise any branch will have the CI run which usually is not what people want to have.
I'd generally speaking also add a workflow_dispatch so one can manually run the CI at any branch they would like.
It would look like this
https://github.com/grische/extremeflash/blob/9bcdda9b35f3a47f67a35e60711df934fec68fd1/.github/workflows/python-package.yml#L4-L11
189 type hints additions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PaulSchweizer i needed to adjust 604 and 628 because of mypy issue
Co-authored-by: Grische <[email protected]>
|
added a mypy python version matrix |

enable mypy check
enable test and linting check on pull request
drop python2 support
Closes #189