Skip to content

Commit f736fed

Browse files
authored
Develop black format fix (#1998)
* fixed the format * changed the circleci config
1 parent d13e18a commit f736fed

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.circleci/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
mkdir test-reports
3838
pytest --cov=mlagents --cov-report xml --junitxml=test-reports/junit.xml -p no:warnings
3939
python-codacy-coverage -r coverage.xml
40+
41+
- run:
42+
name: Check Code Style for ml-agents and gym_unity using black
43+
command: |
44+
. venv/bin/activate
4045
black --check ml-agents
4146
black --check ml-agents-envs
4247
black --check gym-unity

gym-unity/gym_unity/envs/unity_env.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,7 @@ def _single_step(self, info):
212212
visual_obs = info.visual_observations
213213
if isinstance(visual_obs, list):
214214
visual_obs = np.array(visual_obs)
215-
self.visual_obs = self._preprocess_single(
216-
visual_obs[0][0, :, :, :]
217-
)
215+
self.visual_obs = self._preprocess_single(visual_obs[0][0, :, :, :])
218216
default_observation = self.visual_obs
219217
else:
220218
default_observation = info.vector_observations[0, :]

0 commit comments

Comments
 (0)