* add pygame GUI for frozen_lake.py env
* add new line at EOF
* pre-commit reformat
* improve graphics
* new images and dynamic window size
* darker tile borders and fix ICC profile
* pre-commit hook
* adjust elf and stool size
* Update frozen_lake.py
* reformat
* fix#2600
* #2600
* add rgb_array support
* reformat
* test render api change on FrozenLake
* add render support for reset on frozenlake
* add clock on pygame render
* new render api for blackjack
* new render api for cliffwalking
* new render api for Env class
* update reset method, lunar and Env
* fix wrapper
* fix reset lunar
* new render api for box2d envs
* new render api for mujoco envs
* fix bug
* new render api for classic control envs
* fix tests
* add render_mode None for CartPole
* new render api for test fake envs
* pre-commit hook
* fix FrozenLake
* fix FrozenLake
* more render_mode to super - frozenlake
* remove kwargs from frozen_lake new
* pre-commit hook
* add deprecated render method
* add backwards compatibility
* fix test
* add _render
* move pygame.init() (avoid pygame dependency on init)
* fix pygame dependencies
* remove collect_render() maintain multi-behaviours .render()
* add type hints
* fix renderer
* don't call .render() with None
* improve docstring
* add single_rgb_array to all envs
* remove None from metadata["render_modes"]
* add type hints to test_env_checkers
* fix lint
* add comments to renderer
* add comments to single_depth_array and single_state_pixels
* reformat
* add deprecation warnings and env.render_mode declaration
* fix lint
* reformat
* fix tests
* add docs
* fix car racing determinism
* remove warning test envs, customizable modes on renderer
* remove commments and add todo for env_checker
* fix car racing
* replace render mode check with assert
* update new mujoco
* reformat
* reformat
* change metaclass definition
* fix tests
* implement mark suggestions (test, docs, sets)
* check_render
Co-authored-by: J K Terry <jkterry0@gmail.com>
* Updated testing requirements based off extra["testing"]
* Updated setup to check the version is valid, added testing and all dependency groups and collects the requirements from requirements.txt to keep everything standardized.
* Updated requirements.txt based on the current minimum gym requirements.txt to work
* Updated requirements.txt based on the current minimum gym requirements.txt to work
* Updated test_requirements.txt based on the current gym full testing requirements
* Pre-commit updates
* Add integer check for the `n` parameter
* The type of self.spaces is an Iterable which is absorbed by the tuple.
* Simplifies the environment checker to two files, env_checker.py and passive_env_checker.py with a new wrapper env_checker.py
* Adds the passive environment checker on `gym.make`
* Ignore the `check_env` warn parameter
* Ignore the `check_env` warn parameter
* Use the `data_equivalence` function
* Remove env_checker PR changes
* Move pip install pytest and mock to py 3.6
* Update setup.py and requirements.txt
* Updated testing requirements based off extra["testing"]
* Updated setup to check the version is valid, added testing and all dependency groups and collects the requirements from requirements.txt to keep everything standardized.
* Updated requirements.txt based on the current minimum gym requirements.txt to work
* Updated requirements.txt based on the current minimum gym requirements.txt to work
* Updated test_requirements.txt based on the current gym full testing requirements
* Pre-commit updates
* Add integer check for the `n` parameter
* The type of self.spaces is an Iterable which is absorbed by the tuple.
* Simplifies the environment checker to two files, env_checker.py and passive_env_checker.py with a new wrapper env_checker.py
* Adds the passive environment checker on `gym.make`
* Ignore the `check_env` warn parameter
* Ignore the `check_env` warn parameter
* Use the `data_equivalence` function
* Revert rewrite setup.py changes
* Remove smart formatting for 3.6 support
* Fixed `check_action_space` and `check_observation_space`
* Added disable_env_checker to vector.make such that env_checker would only run on the first environment created.
* Removing check that different seeds would produce different initialising states
* Use the unwrapped environment np_random
* Fixed vector environment creator
* Add support for python 3.6
* Add support for python 3.6
* Added check for python 3.6 to not install mujoco as no version exists
* Fixed the install groups for python 3.6
* Re-added python 3.6 support for gym
* black
* Added support for dataclasses through dataclasses module in setup that backports the module
* Fixed install requirements
* Re-added dummy env spec with dataclasses
* Changed type for compatability for python 3.6
* Added a python 3.6 warning
* Fixed python 3.6 typing issue
* Removed __future__ import annotation for python 3.6 support
* Fixed python 3.6 typing
* Updated docstrings using darglint, ignoring 402 and 202 plus shortened lines into multiple where they were overflowing
* Remove abstract method decorators, for a future PR
* Add __future__ import annotation for python 3.7+ notion
* Added missing bracket
* Fix minor docstring tables
* Fixed minor docstring issues found on the website
* Updated the top docstrings with mujoco environments that fixed the observation and action tables. Added v4 gym.make code
* Added pydocstyle to pre-commit
* Added docstrings for tests and updated the tests for autoreset
* Add pydocstyle exclude folder to allow slowly adding new docstrings
* Add docstrings for setup.py and gym/__init__.py, core.py, error.py and logger.py
* Check that all unwrapped environment are of a particular wrapper type
* Reverted back to import gym.spaces.Space to gym.spaces
* Fixed the __init__.py docstring
* Fixed autoreset autoreset test
* Updated gym __init__.py top docstring
* Fix examples in docstrings
* Add docstrings and type hints where known to all functions and classes in gym/utils and gym/vector
* Remove unnecessary import
* Removed "unused error" and make APIerror deprecated at gym 1.0
* Add pydocstyle description to CONTRIBUTING.md
* Added docstrings section to CONTRIBUTING.md
* Added :meth: and :attr: keywords to docstrings
* Added :meth: and :attr: keywords to docstrings
* Imported annotations from __future__ to fix python 3.7
* Add __future__ import annotations for python 3.7
* isort
* Remove utils and vectors for this PR and spaces for previous PR
* Update gym/envs/classic_control/acrobot.py
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Update gym/envs/classic_control/acrobot.py
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Update gym/envs/classic_control/acrobot.py
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Update gym/spaces/dict.py
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Update gym/utils/env_checker.py
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Update gym/utils/env_checker.py
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Update gym/utils/env_checker.py
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Update gym/utils/env_checker.py
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Update gym/utils/env_checker.py
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Update gym/utils/ezpickle.py
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Update gym/utils/ezpickle.py
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Update gym/utils/play.py
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Pre-commit
* Updated docstrings with :meth:
* Updated docstrings with :meth:
* Update gym/utils/play.py
* Update gym/utils/play.py
* Update gym/utils/play.py
* Apply suggestions from code review
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* pre-commit
* Update gym/utils/play.py
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Updated fps and zoom parameter docstring
* Update play docstring
* Apply suggestions from code review
Added suggested corrections from @markus28
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Pre-commit magic
* Update the `gym.make` docstring with a warning for `env_checker`
* Updated and fixed vector docstrings
* Update test names for reflect the project filename style
Co-authored-by: Markus Krimmel <montcyril@gmail.com>
* Add a minimal env checker on make
* Unpack the space checker for custom messages
* Update some dummy envs to use the right API
* Try to fix observation space checking
* And again
* Wrong env
* Swap the minimal env checker to the regular env checker.
Change the argument name
* Disable env checker for two test envs
* Conver env checker exception into warnings.
* Reenable env checker for test envs, it should only raise warning, no exceptions
* Fix edge case for out of bounds
This deals with the edge case where an object's corner may not be in the screen, but the object still overlaps and should be drawn.
* Calculate maximum diagonal for out of bounds calculation
* Add action in bound checks.
* add correct dtype to clip_action test.
* ensure correct dtype in tests.
* action check in car_racing no more needed.
* Prune PR. parametrize tests with spec_list.
* revert changes.
* remove file.
* remove magic number.
* test both upper and lower bound for every action.
* assert oob is really out of bound. also bugfix in action performed
* valide car racing discrete action. Add docstrings. Include car racing discrete in tests.
Co-authored-by: Gianluca De Cola <gianluca.decola@ags-it.com>
* create torque function
* create comment for torque function
* remove second arg from ApplyTorque
* lower torque mag wind power to 20%
* Add torque_power as kwarg
* Use torque_power in ApplyTorque function
* Set torque_wind kwarg default to 1.5
* Update version history for torque_power
* Updated version 2 history for 0.24
* Updated arguments to include torque_power
* Update assert for wind_power and torque_power can equal 0.0
* Update version history for v2
* Change torque_wind to turbulance_wind
* Remove assert for wind_power, turbulence_power. Add warnings for wind_power, turbulence_power. Add recommendations for wind_power, turbulence_power to docs.
* Update docs definition/recommended values for wind_power, turbulence_power
* Add `v` before `0.24` version description