mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-19 13:32:03 +00:00
Add Pydocstyle to CI (#2785)
* 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 * 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 * Update the step docstring placing the return type in the as a note. * Updated step return type to include each element * Update maths notation to reward range * Fixed infinity maths notation
This commit is contained in:
@@ -4,8 +4,7 @@ import numpy as np
|
||||
import pytest
|
||||
from numpy.testing import assert_array_equal
|
||||
|
||||
from gym import Space
|
||||
from gym.spaces import Box, Dict, MultiDiscrete, Tuple
|
||||
from gym.spaces import Box, Dict, MultiDiscrete, Space, Tuple
|
||||
from gym.vector.utils.spaces import batch_space, iterate
|
||||
from tests.vector.utils import CustomSpace, assert_rng_equal, custom_spaces, spaces
|
||||
|
||||
|
Reference in New Issue
Block a user