Update and rerun pre-commit hooks for better code quality (#179)

This commit is contained in:
Xuehai Pan
2022-12-04 22:24:02 +08:00
committed by GitHub
parent 9157a97c80
commit 7e88559763
185 changed files with 1425 additions and 764 deletions

View File

@@ -1,6 +1,7 @@
import os
import sys
all_envs = [
{
"id": "mujoco",

View File

@@ -6,9 +6,10 @@ import re
from PIL import Image
from tqdm import tqdm
from utils import kill_strs
import gymnasium
from utils import kill_strs
# snake to camel case: https://stackoverflow.com/questions/1175208/elegant-python-function-to-convert-camelcase-to-snake-case # noqa: E501
pattern = re.compile(r"(?<!^)(?=[A-Z])")

View File

@@ -7,9 +7,10 @@ from functools import reduce
import numpy as np
from tqdm import tqdm
from utils import kill_strs, trim
import gymnasium as gym
from utils import kill_strs, trim
LAYOUT = "env"

View File

@@ -1,5 +1,6 @@
import sys
if __name__ == "__main__":
if len(sys.argv) < 2:
print("Provide a path")