-
Notifications
You must be signed in to change notification settings - Fork 2
Add mypy workflow #99
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
Conversation
|
These are a lot of errors... |
|
Currently 160 errors in mypy, we need to fix those before merging. |
|
I fixed most of the errors in malsim, but I realized I missed ./tests. This PR is work in progress still so I will put it into Draft. |
|
Now all CIs are passing. I had to do a few things:
I think this is mergeable. It does give mypy support for most of the code base. We should create an issue in the maltoolbox repo so we don't have to use 'ignore missing imports'. We should also typehint (or deprecate) the gym_envs. |
- Add typehints for all files except for gym_envs.py - mypy runs without errors - remove the MalSimEnv baseclass for malsim vectorized obs env - remove logging methods from malsim vectorized obs env as cleanup
…pdating maltoolbox
…t.toml instead of in bash commmand
With the changes happening in #87, types are a bit out of sync in places. This adds mypy in strict mode as a CI job. Ideally, this mypy workflow and the ruff one would exist only in the mal-toolbox repo and be used here as reusable workflows. This will give a common static analysis coverage on both projects (and maybe others too).