From 83603ed35a2ba7f129537886b7a367d78f3721a3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:06:38 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- hoomd/md/update.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hoomd/md/update.py b/hoomd/md/update.py index 75042c8b8b..66806d5bd5 100644 --- a/hoomd/md/update.py +++ b/hoomd/md/update.py @@ -197,8 +197,10 @@ def _to_lowercase(self, letter): def _preprocess_n_slabs(self, n_slabs): if n_slabs < 0: - raise ValueError(f"The number of slabs is negative, \ - n_slabs = {n_slabs}") + raise ValueError( + f"The number of slabs is negative, \ + n_slabs = {n_slabs}" + ) return n_slabs def _preprocess_max_slab(self, max_slab): @@ -214,8 +216,10 @@ def _preprocess_min_slab(self, min_slab): if min_slab <= -1 or min_slab > self.n_slabs: raise ValueError(f"Invalid min_slab of {min_slab}") if min_slab == self.max_slab: - raise ValueError(f"Min and max slab are equal. \ - min_slab = max_slab = {min_slab}") + raise ValueError( + f"Min and max slab are equal. \ + min_slab = max_slab = {min_slab}" + ) return min_slab def _attach_hook(self):