From 98b93f1eeca0662ff0d70e4fd5a64c8ec68c1728 Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Mon, 29 Apr 2019 16:28:43 -0700 Subject: [PATCH 1/2] fixed the format --- gym-unity/gym_unity/envs/unity_env.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gym-unity/gym_unity/envs/unity_env.py b/gym-unity/gym_unity/envs/unity_env.py index 72209209c4..3f7728d37f 100755 --- a/gym-unity/gym_unity/envs/unity_env.py +++ b/gym-unity/gym_unity/envs/unity_env.py @@ -212,9 +212,7 @@ def _single_step(self, info): visual_obs = info.visual_observations if isinstance(visual_obs, list): visual_obs = np.array(visual_obs) - self.visual_obs = self._preprocess_single( - visual_obs[0][0, :, :, :] - ) + self.visual_obs = self._preprocess_single(visual_obs[0][0, :, :, :]) default_observation = self.visual_obs else: default_observation = info.vector_observations[0, :] From 75a4a1f86cfa26eeeeeccbc93a93f6887be69fd6 Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Mon, 29 Apr 2019 16:32:31 -0700 Subject: [PATCH 2/2] changed the circleci config --- .circleci/config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 82c703fcd3..43fd35b46d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,6 +37,11 @@ jobs: mkdir test-reports pytest --cov=mlagents --cov-report xml --junitxml=test-reports/junit.xml -p no:warnings python-codacy-coverage -r coverage.xml + + - run: + name: Check Code Style for ml-agents and gym_unity using black + command: | + . venv/bin/activate black --check ml-agents black --check ml-agents-envs black --check gym-unity