Skip to content

Commit

Permalink
flake8 complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
pzhokhov committed Nov 8, 2019
1 parent 713f1a0 commit 517433f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ install:
- docker build . -t baselines-test

script:
- flake8 . --show-source --statistics
- flake8 . --show-source --statistics --exclude=baselines/her
- docker run -e RUNSLOW=1 baselines-test pytest -v .
4 changes: 2 additions & 2 deletions baselines/bench/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from baselines.bench.benchmarks import *
from baselines.bench.monitor import *
from baselines.bench.benchmarks import * # noqa: F403 F401
from baselines.bench.monitor import * # noqa: F403 F401
1 change: 0 additions & 1 deletion baselines/common/mpi_adam_optimizer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import numpy as np
import tensorflow as tf
from baselines.common.tests.test_with_mpi import with_mpi
try:
from mpi4py import MPI
except ImportError:
Expand Down
8 changes: 4 additions & 4 deletions baselines/deepq/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from baselines.deepq import models # noqa
from baselines.deepq.deepq_learner import DEEPQ #noqa
from baselines.deepq.deepq import learn # noqa
from baselines.deepq.replay_buffer import ReplayBuffer, PrioritizedReplayBuffer # noqa
from baselines.deepq import models # noqa F401
from baselines.deepq.deepq_learner import DEEPQ # noqa F401
from baselines.deepq.deepq import learn # noqa F401
from baselines.deepq.replay_buffer import ReplayBuffer, PrioritizedReplayBuffer # noqa F401

def wrap_atari_dqn(env):
from baselines.common.atari_wrappers import wrap_deepmind
Expand Down
1 change: 0 additions & 1 deletion baselines/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ def main(args):
obs = np.expand_dims(np.array(obs), axis=0)

state = model.initial_state if hasattr(model, 'initial_state') else None
dones = np.zeros((1,))

episode_rew = 0
while True:
Expand Down

0 comments on commit 517433f

Please sign in to comment.