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)),