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

Install specified mypy version first in Python Lint CI to make mypy version consistent #4498

Merged
merged 2 commits into from Sep 30, 2022

Conversation

jcwchen
Copy link
Member

@jcwchen jcwchen commented Sep 8, 2022

Description

Install specified mypy version first in Python Lint CI to make mypy version consistent

Motivation and Context

Currently action-mypy is complaining many mypy errors with newer mypy version 0.971. See related discussion: #4495 (comment).

cc @justinchuby Thanks for the solution!

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
@jcwchen jcwchen requested a review from a team as a code owner September 8, 2022 17:05
@jcwchen jcwchen added the CI pipelines Issues related to the CI pipeline label Sep 8, 2022
@@ -67,6 +67,9 @@ jobs:
level: warning
filter_mode: diff_context
glob_pattern: "**/*.py"
- name: Install specified mypy version
run: |
python -m pip install -q -r requirements-dev.txt
Copy link
Member Author

Choose a reason for hiding this comment

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

I chose requirements-dev.txt instead of pip install mypy==0.782 so we don't have to update a lot of hardcoded versions when upgrading in the future.

@jcwchen jcwchen enabled auto-merge (squash) September 30, 2022 23:08
@jcwchen jcwchen merged commit d97f747 into onnx:main Sep 30, 2022
@jcwchen jcwchen deleted the jcw/fix-mypy branch October 1, 2022 15:57
broune pushed a commit to broune/onnx that referenced this pull request May 6, 2023
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI pipelines Issues related to the CI pipeline
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants