Skip to content

Commit 42e3fa9

Browse files
committed
Fix not to test examples due to comment
1 parent d8b56ff commit 42e3fa9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ format:
55
test:
66
black . --check
77
isort . --check --diff --skip checkpoint --skip wandb --skip data
8-
env PYTHONPATH=. pytest --pylint --flake8 --cov=tests --ignore=checkpoint --ignore=data --ignore=wandb --ignore tests/integration
8+
env PYTHONPATH=. pytest --pylint --flake8 --cov=tests --ignore=checkpoint --ignore=data --ignore=wandb --ignore tests/integration --ignore example
99

1010
integration-test:
1111
env PYTHONPATH=. pytest tests/integration --cov=tests

example/run_custom_env.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ def render(self, mode="human"):
118118
)
119119

120120

121-
def main(env):
121+
def main(custom_env):
122122
"""Main."""
123123
args = parse_args()
124124

125-
env_name = type(env).__name__
126-
env, max_episode_steps = env_utils.set_env(env, args.max_episode_steps)
125+
env_name = type(custom_env).__name__
126+
env, max_episode_steps = env_utils.set_env(custom_env, args.max_episode_steps)
127127

128128
# set a random seed
129129
common_utils.set_random_seed(args.seed, env)
@@ -170,7 +170,6 @@ def main(env):
170170
if __name__ == "__main__":
171171
###################################################################################
172172
# To use custom agent and learner, import custom agent and learner.
173-
#
174173
from custom_agent import CustomDQN # noqa: F401
175174
from custom_learner import CustomDQNLearner # noqa: F401
176175

0 commit comments

Comments
 (0)