From 7f567db3ebf8c52e8c958740c0ca50d0898026e6 Mon Sep 17 00:00:00 2001 From: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com> Date: Fri, 11 Oct 2024 05:55:20 +0300 Subject: [PATCH 1/3] Update __init__.py --- gymnasium_robotics/__init__.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gymnasium_robotics/__init__.py b/gymnasium_robotics/__init__.py index 726e5cdf..6d5b4077 100644 --- a/gymnasium_robotics/__init__.py +++ b/gymnasium_robotics/__init__.py @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, From d80352c8bb716902debebaa35fe563d02c200aa8 Mon Sep 17 00:00:00 2001 From: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com> Date: Fri, 11 Oct 2024 08:39:57 +0300 Subject: [PATCH 2/3] Update pre-commit.yml --- .github/workflows/pre-commit.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index cbe3d343..e44d0268 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -15,7 +15,7 @@ jobs: 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 + - run: pipx install pre-commit + - run: pre-commit --version + - run: pre-commit install + - run: pre-commit run --all-files From 928c56f93abc5c4449a235713d4806445fc5ea8b Mon Sep 17 00:00:00 2001 From: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com> Date: Fri, 11 Oct 2024 09:27:00 +0300 Subject: [PATCH 3/3] Update pre-commit.yml --- .github/workflows/pre-commit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index e44d0268..e59074d6 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -13,8 +13,8 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 - run: pipx install pre-commit - run: pre-commit --version - run: pre-commit install