Skip to content

Commit 4eea17d

Browse files
committed
Modify the format as suggested by CI.
Modify the quote sign as suggested by CI.
1 parent eac36c3 commit 4eea17d

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/model_config_tests/config_tests/test_bit_reproducibility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import pytest
1111

12-
from model_config_tests.exp_test_helper import Experiments, setup_exp, ExpTestHelper
12+
from model_config_tests.exp_test_helper import Experiments, ExpTestHelper, setup_exp
1313
from model_config_tests.util import DAY_IN_SECONDS, HOUR_IN_SECONDS
1414

1515
# Names of shared experiments

src/model_config_tests/exp_test_helper.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,7 @@ def setup_reproduce(self):
9191
os.chdir(self.control_path)
9292

9393
try:
94-
setup_command = [
95-
"payu",
96-
"setup",
97-
"--lab",
98-
str(self.lab_path)
99-
]
94+
setup_command = ["payu", "setup", "--lab", str(self.lab_path)]
10095
print(f"Running payu setup command: {setup_command}")
10196
setup_result = sp.run(setup_command, capture_output=True, text=True)
10297
if setup_result.returncode != 0 or "error" in setup_result.stderr.lower():
@@ -105,7 +100,11 @@ def setup_reproduce(self):
105100
f"{'='*10}STDOUT{'='*10}\n {setup_result.stdout}\n"
106101
f"{'='*10}STDERR{'='*10}\n {setup_result.stderr}\n"
107102
)
108-
result = sp.run(['git', 'diff', '--name-only', 'manifests/'], capture_output=True, text=True)
103+
result = sp.run(
104+
["git", "diff", "--name-only", "manifests/"],
105+
capture_output=True,
106+
text=True,
107+
)
109108
finally:
110109
# Change back to original working directory
111110
os.chdir(owd)

0 commit comments

Comments
 (0)