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 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, :]