Fix documentation ci (#417)

This commit is contained in:
Mark Towers
2023-03-30 14:49:18 +01:00
committed by GitHub
parent 44bdfa1fe0
commit 46af646be1
3 changed files with 45 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ repos:
- id: detect-private-key - id: detect-private-key
- id: debug-statements - id: debug-statements
- repo: https://github.com/codespell-project/codespell - repo: https://github.com/codespell-project/codespell
rev: v2.2.2 rev: v2.2.4
hooks: hooks:
- id: codespell - id: codespell
args: args:
@@ -44,7 +44,7 @@ repos:
hooks: hooks:
- id: isort - id: isort
- repo: https://github.com/python/black - repo: https://github.com/python/black
rev: 23.1.0 rev: 23.3.0
hooks: hooks:
- id: black - id: black
- repo: https://github.com/pycqa/pydocstyle - repo: https://github.com/pycqa/pydocstyle

View File

@@ -42,39 +42,69 @@ all_envs = [
"asterix", "asterix",
"asteroids", "asteroids",
"atlantis", "atlantis",
"atlantis2",
"backgammon",
"bank_heist", "bank_heist",
"basic_math",
"battle_zone", "battle_zone",
"beam_rider", "beam_rider",
"berzerk", "berzerk",
"blackjack",
"bowling", "bowling",
"boxing", "boxing",
"breakout", "breakout",
"carnival", "carnival",
"casino",
"centipede", "centipede",
"chopper_command", "chopper_command",
"crazy_climber", "crazy_climber",
"crossbow",
"darkchambers",
"defender", "defender",
"demon_attack", "demon_attack",
"donkey_kong",
"double_dunk", "double_dunk",
"earthworld",
"elevator_action", "elevator_action",
"enduro", "enduro",
"entombed",
"et",
"fishing_derby", "fishing_derby",
"flag_capture",
"freeway", "freeway",
"frogger",
"frostbite", "frostbite",
"galaxian",
"gopher", "gopher",
"gravitar", "gravitar",
"hangman",
"haunted_house",
"hero", "hero",
"human_cannonball",
"ice_hockey", "ice_hockey",
"jamesbond", "jamesbond",
"journey_escape", "journey_escape",
"kaboom",
"kangaroo", "kangaroo",
"keystone_kapers",
"king_kong",
"klax",
"koolaid",
"krull", "krull",
"kung_fu_master", "kung_fu_master",
"laser_gates",
"lost_luggage",
"mario_bros",
"miniature_golf",
"montezuma_revenge", "montezuma_revenge",
"mr_do",
"ms_pacman", "ms_pacman",
"name_this_game", "name_this_game",
"othello",
"pacman",
"phoenix", "phoenix",
"pitfall", "pitfall",
"pitfall2",
"pong", "pong",
"pooyan", "pooyan",
"private_eye", "private_eye",
@@ -83,17 +113,29 @@ all_envs = [
"road_runner", "road_runner",
"robotank", "robotank",
"seaquest", "seaquest",
"sir_lancelot",
"skiing", "skiing",
"solaris", "solaris",
"space_invaders", "space_invaders",
"space_war",
"star_gunner", "star_gunner",
"superman",
"surround",
"tennis", "tennis",
"tetris",
"tic_tac_toe_3d",
"time_pilot", "time_pilot",
"trondead",
"turmoil",
"tutankham", "tutankham",
"up_n_down", "up_n_down",
"venture", "venture",
"video_checkers",
"video_chess",
"video_cube",
"video_pinball", "video_pinball",
"wizard_of_wor", "wizard_of_wor",
"word_zapper",
"yars_revenge", "yars_revenge",
"zaxxon", "zaxxon",
], ],

View File

@@ -19,7 +19,7 @@ exclude_env_names = [
"tabular/Blackjack", "tabular/Blackjack",
] ]
for env_spec in gym.registry.values(): for env_spec in gym.registry.values():
if env_spec.name not in exclude_env_names: if get_env_id(env_spec.namespace, env_spec.name, None) not in exclude_env_names:
highest_version = find_highest_version(env_spec.namespace, env_spec.name) highest_version = find_highest_version(env_spec.namespace, env_spec.name)
env_id = get_env_id(env_spec.namespace, env_spec.name, highest_version) env_id = get_env_id(env_spec.namespace, env_spec.name, highest_version)