Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into mjc3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kallinteris-Andreas committed Oct 11, 2024
2 parents be36ad1 + 2d3e0df commit 0932dbc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: python -m pip install pre-commit
- run: python -m pre_commit --version
- run: python -m pre_commit install
- run: python -m pre_commit run --all-files
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: pipx install pre-commit
- run: pre-commit --version
- run: pre-commit install
- run: pre-commit run --all-files
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
args:
- --ignore-words-list=nd,reacher,thist,ths, arry
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
rev: 7.1.1
hooks:
- id: flake8
args:
Expand Down
18 changes: 9 additions & 9 deletions gymnasium_robotics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Open{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.OPEN,
Expand All @@ -862,7 +862,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Open_Diverse_G{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.OPEN_DIVERSE_G,
Expand All @@ -874,7 +874,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Open_Diverse_GR{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.OPEN_DIVERSE_GR,
Expand All @@ -886,7 +886,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Medium{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.MEDIUM_MAZE,
Expand All @@ -898,7 +898,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Medium_Diverse_G{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.MEDIUM_MAZE_DIVERSE_G,
Expand All @@ -910,7 +910,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Medium_Diverse_GR{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.MEDIUM_MAZE_DIVERSE_GR,
Expand All @@ -922,7 +922,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Large{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.LARGE_MAZE,
Expand All @@ -934,7 +934,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Large_Diverse_G{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.LARGE_MAZE_DIVERSE_G,
Expand All @@ -946,7 +946,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Large_Diverse_GR{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.LARGE_MAZE_DIVERSE_GR,
Expand Down
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def assert_equals(a, b, prefix=None):
b: second data structure
prefix: prefix for failed assertion message for types and dicts
"""
assert type(a) == type(b), f"{prefix}Differing types: {a} and {b}"
assert type(a) is type(b), f"{prefix}Differing types: {a} and {b}"
if isinstance(a, dict):
assert list(a.keys()) == list(b.keys()), f"{prefix}Key sets differ: {a} and {b}"

Expand Down

0 comments on commit 0932dbc

Please sign in to comment.