Skip to content
Prev Previous commit
Next Next commit
fix black
  • Loading branch information
jnnsbrr committed Feb 6, 2026
commit 8755e243c10b84e74fed3aaa7d013b0725348730
1 change: 0 additions & 1 deletion pycoupler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
detect_io_type,
)


__all__ = [
"LpjmlConfig",
"CoupledConfig",
Expand Down
7 changes: 2 additions & 5 deletions pycoupler/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,12 +1140,9 @@ def __repr__(self, sub_repr=1, order=1):

for key, value in self.__dict__.items():
if isinstance(value, SubConfig):
summary += (
f"""{' ' * sub_repr}* {key}: {value.__repr__(
summary += f"""{' ' * sub_repr}* {key}: {value.__repr__(
sub_repr + 1, order + 1
)}""".strip()
+ spacing
)
)}""".strip() + spacing
else:
summary += (
f"{' ' * sub_repr}* {key:<20} {value}".strip() + spacing
Expand Down
1 change: 0 additions & 1 deletion pycoupler/coupler.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
)
from pycoupler.utils import get_countries


# Port cleanup utilities ==================================================== #


Expand Down
5 changes: 1 addition & 4 deletions tests/test_couple.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ def test_lpjml_coupler(model_path, sim_path, lpjml_coupler):
assert lpjml_coupler.sim_years == []
assert lpjml_coupler.coupled_years == []
assert [year for year in lpjml_coupler.get_coupled_years()] == []
assert (
repr(lpjml_coupler)
== f"""<pycoupler.LPJmLCoupler>
assert repr(lpjml_coupler) == f"""<pycoupler.LPJmLCoupler>
Simulation: (version: 3, localhost:<none>)
* sim_year 2050
* ncell 2
Expand Down Expand Up @@ -89,7 +87,6 @@ def test_lpjml_coupler(model_path, sim_path, lpjml_coupler):
* input (coupled) ['with_tillage']
* output (coupled) ['grid', 'pft_harvestc', 'cftfrac', 'soilc_agr_layer', 'hdate', 'country', 'region']
""" # noqa
)


def test_lpjml_coupler_codes_name(lpjml_coupler):
Expand Down
5 changes: 1 addition & 4 deletions tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ def test_run_script(self, sim_path, config_coupled, mock_venv, request, submit):
run_script_path.stat().st_mode & 0o0100
), "run script should be executable"
with run_script_path.open("r") as f:
assert (
f.read()
== f"""#!/bin/bash
assert f.read() == f"""#!/bin/bash

# Define the path to the config file
config_file="{config_coupled}"
Expand All @@ -161,7 +159,6 @@ def test_run_script(self, sim_path, config_coupled, mock_venv, request, submit):
{f"{mock_venv}/bin/python" if mock_venv else "python3"} {self.couple_script} \
$config_file
"""
)

def test_slurm_wait_block_injected(self, config_coupled, submit, tmp_path):
slurm_text = (tmp_path / "slurm.jcf").read_text()
Expand Down