Skip to content

Commit 4c3d9d3

Browse files
committed
dstyle: polish code style
1 parent 436dbdd commit 4c3d9d3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

omnisafe/version.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 OmniSafe Team. All Rights Reserved.
1+
# Copyright 2024 OmniSafe Team. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -25,8 +25,8 @@
2525

2626
try:
2727
prefix, sep, suffix = (
28-
subprocess.check_output(
29-
['git', 'describe', '--abbrev=7'], # noqa: S603,S607
28+
subprocess.check_output( # noqa: S603
29+
['git', 'describe', '--abbrev=7'], # noqa: S607
3030
cwd=os.path.dirname(os.path.abspath(__file__)),
3131
stderr=subprocess.DEVNULL,
3232
text=True,

tests/test_buffer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test_vector_onpolicy_buffer(
7979
assert (
8080
vector_buffer.standardized_adv_r == standardized_adv_r
8181
), f'vector_buffer.sstandardized_adv_r is {vector_buffer.sstandardized_adv_r}'
82-
assert vector_buffer.buffers is not [], f'vector_buffer.buffers is {vector_buffer.buffers}'
82+
assert vector_buffer.buffers != [], f'vector_buffer.buffers is {vector_buffer.buffers}'
8383

8484
# checking the store function
8585
obs_dim = obs_space.shape[0]

0 commit comments

Comments
 (0)