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: debug-statements
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
rev: v2.2.4
hooks:
- id: codespell
args:
@@ -44,7 +44,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/python/black
rev: 23.1.0
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/pydocstyle

View File

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

View File

@@ -19,7 +19,7 @@ exclude_env_names = [
"tabular/Blackjack",
]
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)
env_id = get_env_id(env_spec.namespace, env_spec.name, highest_version)