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 config to pyproject.toml #1543

Merged
merged 4 commits into from
Feb 7, 2024
Merged

Conversation

jackgerrits
Copy link
Member

@jackgerrits jackgerrits commented Feb 5, 2024

Why are these changes needed?

@davorrunje @ekzhu I am merging just the mypy config that I have seen in some of your PRs. As I am sure you're aware, we're very far away from being able to enforce this in CI. But at the very least having the config merged allows us to make progress towards this.

Screenshot 2024-02-05 at 8 50 17 AM

Related issue number

#1462

Checks

@codecov-commenter
Copy link

codecov-commenter commented Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e0fa6ee) 35.19% compared to head (5e624f7) 46.99%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1543       +/-   ##
===========================================
+ Coverage   35.19%   46.99%   +11.80%     
===========================================
  Files          44       44               
  Lines        5328     5328               
  Branches     1236     1305       +69     
===========================================
+ Hits         1875     2504      +629     
+ Misses       3299     2613      -686     
- Partials      154      211       +57     
Flag Coverage Δ
unittests 46.95% <ø> (+11.76%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sonichi sonichi added the dev label Feb 5, 2024
@jackgerrits jackgerrits mentioned this pull request Feb 5, 2024
3 tasks
@sonichi sonichi added this pull request to the merge queue Feb 7, 2024
Merged via the queue into microsoft:main with commit 8ece258 Feb 7, 2024
43 of 49 checks passed
@davorrunje
Copy link
Collaborator

davorrunje commented Feb 8, 2024

This is great! All new files in my past PRs conform to this already and I found a few bugs already because of mypy errors.

@jackgerrits
Copy link
Member Author

Music to my ears!

whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
* Add mypy config to pyproject.toml

* put back follow_imports

* ignore math utils
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.

5 participants