Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 3, 2024
1 parent b182351 commit 483ed51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__}"

Expand Down
4 changes: 3 additions & 1 deletion pybop/optimisers/base_optimiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 483ed51

Please sign in to comment.