Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add isort #15

Merged
merged 2 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ clean:
# ------------------------ #

format:
@isort --profile black sim
@black sim
@ruff format sim
.PHONY: format
Expand All @@ -86,6 +87,7 @@ format-cpp:
.PHONY: format-cpp

static-checks:
@isort --profile black --check --diff sim
@black --diff --check sim
@ruff check sim
@mypy --install-types --non-interactive sim
Expand Down
3 changes: 1 addition & 2 deletions sim/humanoid_gym/envs/legs_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
from humanoid.envs.base.legged_robot_config import LeggedRobotCfg, LeggedRobotCfgPPO

from sim.env import stompy_urdf_path
from sim.stompy.joints import StompyFixed
from sim.humanoid_gym.envs.stompy_config import StompyCfg

from sim.stompy.joints import StompyFixed

NUM_JOINTS = len(StompyFixed.default_standing()) # 17

Expand Down
3 changes: 1 addition & 2 deletions sim/humanoid_gym/envs/legs_env.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# mypy: disable-error-code="valid-newtype"
"""Defines the environment for training the Stompy with fixed torso."""

import torch
from humanoid.envs import LeggedRobot
from humanoid.envs.base.legged_robot_config import LeggedRobotCfg
from humanoid.utils.terrain import HumanoidTerrain
from isaacgym import gymtorch
from isaacgym.torch_utils import *

import torch

from sim.stompy.joints import StompyFixed


Expand Down
3 changes: 1 addition & 2 deletions sim/humanoid_gym/envs/stompy_env.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# mypy: disable-error-code="valid-newtype"
"""Defines the environment for training the humanoid."""

import torch
from humanoid.envs import LeggedRobot
from humanoid.envs.base.legged_robot_config import LeggedRobotCfg
from humanoid.utils.terrain import HumanoidTerrain
from isaacgym import gymtorch
from isaacgym.torch_utils import *

import torch

from sim.stompy.joints import Stompy


Expand Down
1 change: 1 addition & 0 deletions sim/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ darglint
mypy
pytest
ruff
isort
Loading