Skip to content

Conversation

@jonassorgenfrei
Copy link
Collaborator

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

Closes #189

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

Closes PaulSchweizer#189
@@ -1,6 +1,6 @@
name: Pylint

on: [push]
Copy link
Owner

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

for pull_request it also runs when a PR is opened, synchronized (new commits pushed to the PR’s branch), or reopened.

grafik

Copy link
Collaborator

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

Copy link
Collaborator Author

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

@jonassorgenfrei
Copy link
Collaborator Author

added a mypy python version matrix

@PaulSchweizer PaulSchweizer merged commit ce2ace9 into PaulSchweizer:master Dec 1, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code Structure add Type Hints

3 participants