-
Notifications
You must be signed in to change notification settings - Fork 515
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 type checking with mypy #331
Conversation
pytype -j auto ${LINT_PATHS} -d import-error | ||
|
||
mypy: | ||
mypy ${LINT_PATHS} --install-types --non-interactive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also add --install-types --non-interactive
in sb3 and sb3-contrib?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would only if it was needed.
It's weird, mypy check passes locally, I guess it has something to do with the way we package SB3 / SB3 contrib, maybe the stubs are missing? (locally I have them installed in editable mode) |
Same here |
I can reproduce some errorr locally: and surprisingly, I've got more errors on my laptop that on the PC I used to do the PR. |
Have you checked that the sb3/sb3-contrib versions match? |
yes, I'm using master version of both |
Actually, no, I just forgot to stage setup.cfg in my last commit. |
Description
Counterpart of DLR-RM/stable-baselines3#1143
Motivation and Context
Types of changes
Checklist:
make format
(required)make check-codestyle
andmake lint
(required)make pytest
andmake type
both pass. (required)Note: we are using a maximum length of 127 characters per line