From 7d8d8c15ac23b2f4b92e504078f39b44340f9be9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 19 Jan 2025 10:53:43 -0700 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#179) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.7...v0.6.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix indent * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.9.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.4...v0.9.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: chrisjonesBSU --- .pre-commit-config.yaml | 2 +- flowermd/base/molecule.py | 3 +-- flowermd/base/simulation.py | 3 +-- flowermd/base/system.py | 3 +-- flowermd/modules/surface_wetting/surface_wetting.py | 3 +-- 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c8fd163..915bf97f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ ci: submodules: false repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.4 # Ruff version + rev: v0.9.1 # Ruff version hooks: - id: ruff args: [--fix, --extend-ignore=E203] diff --git a/flowermd/base/molecule.py b/flowermd/base/molecule.py index c517f57b..aa33e603 100644 --- a/flowermd/base/molecule.py +++ b/flowermd/base/molecule.py @@ -525,8 +525,7 @@ def _build(self, length): self.periodic_bond_axis, str ) or self.periodic_bond_axis.lower() not in ["x", "y", "z"]: raise ValueError( - "Valid choices for a `periodic_bond_axis` are " - "'x', 'y', 'z'" + "Valid choices for a `periodic_bond_axis` are 'x', 'y', 'z'" ) add_hydrogens = False else: diff --git a/flowermd/base/simulation.py b/flowermd/base/simulation.py index 4e62b832..db6fe52b 100644 --- a/flowermd/base/simulation.py +++ b/flowermd/base/simulation.py @@ -73,8 +73,7 @@ def __init__( ): if not isinstance(forcefield, Iterable) or isinstance(forcefield, str): raise ValueError( - "forcefield must be a sequence of " - "hoomd.md.force.Force objects." + "forcefield must be a sequence of hoomd.md.force.Force objects." ) else: for obj in forcefield: diff --git a/flowermd/base/system.py b/flowermd/base/system.py index dc2b0107..820f0bd6 100644 --- a/flowermd/base/system.py +++ b/flowermd/base/system.py @@ -660,8 +660,7 @@ def __init__( if not isinstance(density, u.array.unyt_quantity): self.density = density * u.Unit("g") / u.Unit("cm**3") warnings.warn( - "Units for density were not given, assuming " - "units of g/cm**3." + "Units for density were not given, assuming units of g/cm**3." ) else: self.density = density diff --git a/flowermd/modules/surface_wetting/surface_wetting.py b/flowermd/modules/surface_wetting/surface_wetting.py index 3f35383e..ea2e86aa 100644 --- a/flowermd/modules/surface_wetting/surface_wetting.py +++ b/flowermd/modules/surface_wetting/surface_wetting.py @@ -102,8 +102,7 @@ def run_droplet( shrink_density, u.array.unyt_quantity ) and not isinstance(final_density, u.array.unyt_quantity): warnings.warn( - "Units for density were not given, assuming " - "units of g/cm**3." + "Units for density were not given, assuming units of g/cm**3." ) target_box_shrink = get_target_box_mass_density( density=shrink_density * (u.g / (u.cm**3)),