From c4f5b86b776cd373eda99ea269c4e6183338db0d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 12 Sep 2023 11:20:55 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- oommfc/oommf/oommf.py | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/oommfc/oommf/oommf.py b/oommfc/oommf/oommf.py index 69ec75f..85fb43e 100644 --- a/oommfc/oommf/oommf.py +++ b/oommfc/oommf/oommf.py @@ -470,11 +470,9 @@ def autoselect_runner(self): """ log.debug( - ( - "Starting autoselect_runner: cache_runner=%(cache_runner)s, " - "envvar=%(envvar)s, oommf_exe=%(oommf_exe)s, " - "docker_exe=%(docker_exe)s)" - ), + "Starting autoselect_runner: cache_runner=%(cache_runner)s, " + "envvar=%(envvar)s, oommf_exe=%(oommf_exe)s, " + "docker_exe=%(docker_exe)s)", { "cache_runner": self.cache_runner, "envvar": self.envvar, @@ -485,10 +483,8 @@ def autoselect_runner(self): # Check for the OOMMFTCL environment variable pointing to oommf.tcl. log.debug( - ( - "Step 1: Checking for the self.envvar=%(envvar)s environment" - " variable pointing to oommf.tcl." - ), + "Step 1: Checking for the self.envvar=%(envvar)s environment" + " variable pointing to oommf.tcl.", {"envvar": self.envvar}, ) oommf_tcl = os.environ.get(self.envvar, None) @@ -501,10 +497,8 @@ def autoselect_runner(self): else: if res.returncode: log.warning( - ( - "OOMMFTCL is set, but OOMMF could not be run.\n" - "stdout:\n%(stdout)s\nstderr:\n%(stderr)s" - ), + "OOMMFTCL is set, but OOMMF could not be run.\n" + "stdout:\n%(stdout)s\nstderr:\n%(stderr)s", {"stdout": res.stdout, "stderr": res.stderr}, ) else: @@ -514,10 +508,8 @@ def autoselect_runner(self): # OOMMF available as an executable - in a conda env on Mac/Linux, or # oommf installed separately. log.debug( - ( - "Step 2: is oommf_exe=%(oommf_exe)s in PATH? " - "Could be from conda env or manual install." - ), + "Step 2: is oommf_exe=%(oommf_exe)s in PATH? " + "Could be from conda env or manual install.", {"oommf_exe": self.oommf_exe}, ) oommf_exe = shutil.which(self.oommf_exe)