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

ci: added mypy to precommit #1070

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ErikBjare
Copy link
Collaborator

@ErikBjare ErikBjare commented Mar 18, 2024

While trying to get #1057 merged I noticed there were a bunch of type errors that were only caught in tests. I thought we had some kind of typechecking on the codebase, but apparently not.

I added mypy to the precommit config, but it found 100+ type errors.

Here's the PR anyway, as a reminder we might want to get around to cleaning up the types.

Copy link

codecov bot commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.13%. Comparing base (a8b82d1) to head (6864aba).
Report is 237 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1070   +/-   ##
=======================================
  Coverage   84.13%   84.13%           
=======================================
  Files          26       26           
  Lines        1393     1393           
=======================================
  Hits         1172     1172           
  Misses        221      221           

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

@ATheorell
Copy link
Collaborator

Good initiative!

Wouldn't this be a nice project for automatic type fixing? Someone could set up a self-heal with gpt-engineer which for example fixes types file by file and runs until mypy passes.

@ErikBjare
Copy link
Collaborator Author

@ATheorell Yes!

I think we should be able to make a general self-heal that supports any linter/checker.

@viborc viborc added the good first issue Good for newcomers label May 23, 2024
@viborc viborc mentioned this pull request May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

4 participants