File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 5
5
test :
6
6
black . --check
7
7
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
9
9
10
10
integration-test :
11
11
env PYTHONPATH=. pytest tests/integration --cov=tests
Original file line number Diff line number Diff line change @@ -118,12 +118,12 @@ def render(self, mode="human"):
118
118
)
119
119
120
120
121
- def main (env ):
121
+ def main (custom_env ):
122
122
"""Main."""
123
123
args = parse_args ()
124
124
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 )
127
127
128
128
# set a random seed
129
129
common_utils .set_random_seed (args .seed , env )
@@ -170,7 +170,6 @@ def main(env):
170
170
if __name__ == "__main__" :
171
171
###################################################################################
172
172
# To use custom agent and learner, import custom agent and learner.
173
- #
174
173
from custom_agent import CustomDQN # noqa: F401
175
174
from custom_learner import CustomDQNLearner # noqa: F401
176
175
You can’t perform that action at this time.
0 commit comments