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

Add MyPy to CI #103

Merged
merged 5 commits into from
May 17, 2022
Merged

Add MyPy to CI #103

merged 5 commits into from
May 17, 2022

Conversation

TommyDew42
Copy link
Contributor

@TommyDew42 TommyDew42 commented May 17, 2022

Patch Description
PR for issue 14.

Here we add MyPy to CI.

Testing steps
Run mypy at local laptop & run the check via an actual pull request.

@TommyDew42
Copy link
Contributor Author

TommyDew42 commented May 17, 2022

@stephenroller

I ran the CI in the PR in my fork repo.
But there were a lot of mypy type checking errors.

How do we do about them?

- name: Type Checking with MyPy
run: |
pip install mypy
mypy
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets make this || true for now. Mypy is best as a warning not an error in its current state

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds great!

The CI would now looks like this

@TommyDew42 TommyDew42 marked this pull request as ready for review May 17, 2022 16:50
mypy.ini Outdated
@@ -0,0 +1,5 @@
[mypy]
python_version = 3.7
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe we have python 3.8 dependency in our CI setup - could we change this to 3.8 instead?

@suchenzang suchenzang merged commit b2de089 into facebookresearch:main May 17, 2022
@stephenroller
Copy link
Contributor

Thanks for the contribution.

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.

None yet

4 participants