Commit Graph

10 Commits

Author SHA1 Message Date
Markus Krimmel
1285fed2f2 Update check_env (#2717)
* Added check for return_info, only warn about missing render_fps if human mode is available

* Require render_fps if any kind of rendering is implemented
2022-03-31 16:09:43 -04:00
Andrea PIERRÉ
e913bc81b8 Improve pre-commit workflow (#2602)
* feat: add `isort` to `pre-commit`

* ci: skip `__init__.py` file for `isort`

* ci: make `isort` mandatory in lint pipeline

* docs: add a section on Git hooks

* ci: check isort diff

* fix: isort from master branch

* docs: add pre-commit badge

* ci: update black + bandit versions

* feat: add PR template

* refactor: PR template

* ci: remove bandit

* docs: add Black badge

* ci: try to remove all `|| true` statements

* ci: remove lint_python job

- Remove `lint_python` CI job
- Move `pyupgrade` job to `pre-commit` workflow

* fix: avoid messing with typing

* docs: add a note on running `pre-cpmmit` manually

* ci: apply `pre-commit` to the whole codebase
2022-03-31 15:50:38 -04:00
trigaten
4a3c63f0b5 render_fps API test (#2659)
* Update pendulum.py

* version warnings

* black

* try except

* update notices version

* Exception

* nosec

* black

* no loop, stderr

* black

* convert ## to ###

* correct subheader

* black

* despace

* spacing

* frozen lake fixes

* rename render modes/fps

* fix API test

* fix API test

* fix more API tests

* black

* add render fps

* render_fps API test

* black

* Update env_checker.py
2022-03-02 11:50:25 -05:00
trigaten
35b78ac0ab Rename render modes/fps (#2654)
* Update pendulum.py

* version warnings

* black

* try except

* update notices version

* Exception

* nosec

* black

* no loop, stderr

* black

* convert ## to ###

* correct subheader

* black

* despace

* spacing

* frozen lake fixes

* rename render modes/fps

* fix API test

* fix API test

* fix more API tests

* black

* add render fps
2022-02-28 15:54:03 -05:00
Ariel Kwiatkowski
925823661d Add options to the signature of env.reset (#2515)
* First find/replace, now tests

* Fixes to the vector env

* Make seed keyword only in wrappers

* (try to) fix the bug with old environments using new wrappers (with the seed keyword)

* black

* Change **kwargs to options, try to make it work; black

* Add OrderEnforcing wrapper to wrapper exports
Add a test for compatibility with old (pybullet-like) envs

* Add OrderEnforcing wrapper to wrapper exports
Add a test for compatibility with old (pybullet-like) envs
black

* Update the env checker

* Update the env checker

* Update the env checker to use inspect (might fail tests, let's see)

* Allow the signature to include kwargs in env_checker

* Minor fix
2022-01-19 17:28:59 -05:00
J K Terry
6d3a34823e Update env_checker.py 2021-12-21 14:05:40 -05:00
Seungjae Ryan Lee
616b071158 Remove Robotics environments from Gym (#2516)
* Remove registration of Robotics envs

* Remove Robotics environments

* Update setup.py

* Update unit tests

* Remove unused GoalEnv class
2021-12-21 09:46:24 -05:00
Xuehai Pan
58ed658d9b Better warning control (#2434)
* Better warning control

* Replace `warnings.warn` with `gym.logger.warn`

* Send logs to stderr
2021-10-01 20:36:02 -04:00
Ahmed Omar
2754d9737e removed calls to reset from init (#2394)
* removed all calls to reset

* passing tests

* fix off-by-one error

* revert

* merge master into branch

* add OrderEnforcing Wrapper

* add orderenforcing to the docs

* add option for disabling

* add argument to EnvSpec
2021-09-16 10:16:49 -04:00
Anthony Tamasi
cb1a4836fb Add compliance testing for API (#2289)
* 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
2021-08-12 13:35:09 -04:00