-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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 compliance testing for API #2289
Add compliance testing for API #2289
Conversation
This is awesome! -Please make this test be applied to all environments in Gym as part of CI tests |
@amtamasi as long as the code is attributed and you say it was under the MIT license you don't have to copy paste the entire license it into the file |
* Copied over SB3 env checker * Added test from SB3 * Addition of MIT license attribution and black formatting * Removed SB3 dependence * Implemented rough, non-vectorized version of check_nan * Made some SB3 warnings a bit more "general" * Removed check for "unsupported" spaces, since Gym should support any space * Added action/observation checks from pettingzoo, referenced in file docstring * Removed copy of MIT license in file docstring * Re-added usage of the check_inf flag for helper functino * Changed test to be simple/classic example. Should add more tests * Added API compliance check to registered envs
Closes #2278