From 483ed51d4923290c2686467674c320793e97df7e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 3 Jul 2024 13:35:39 +0000 Subject: [PATCH] style: pre-commit fixes --- docs/conf.py | 2 +- pybop/optimisers/base_optimiser.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 14dd72db..dd732208 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -11,7 +11,7 @@ # -- Project information ----------------------------------------------------- project = "PyBOP" -copyright = "2023, The PyBOP Team" # noqa A001 +copyright = "2023, The PyBOP Team" # noqa A001 author = "The PyBOP Team" release = f"v{__version__}" diff --git a/pybop/optimisers/base_optimiser.py b/pybop/optimisers/base_optimiser.py index 1a2732bf..fc27ea0a 100644 --- a/pybop/optimisers/base_optimiser.py +++ b/pybop/optimisers/base_optimiser.py @@ -88,7 +88,9 @@ def __init__( self.minimising = True except Exception as e: - raise Exception("The cost is not a recognised cost object or function.") from e + raise Exception( + "The cost is not a recognised cost object or function." + ) from e if not np.isscalar(cost_test) or not np.isreal(cost_test): raise TypeError(