Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #179

Merged
merged 6 commits into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 1 addition & 2 deletions flowermd/base/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions flowermd/base/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions flowermd/base/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions flowermd/modules/surface_wetting/surface_wetting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down
Loading