Skip to content

Commit

Permalink
Update Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshanuikabundi committed Jan 21, 2025
1 parent a28c4fe commit e5264ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repos:
exclude: "_tests"
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.6
rev: v0.9.2
hooks:
# Run the linter.
- id: ruff
Expand Down
12 changes: 6 additions & 6 deletions openff/pablo/_pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,9 @@ def _add_to_molecule(
if this_molecule.atom(i).metadata["canonical_name"] == linking_atom_name:
linking_atom_idx = i
break
assert (
linking_atom_idx is not None
), "Expecting a prior bond, but no linking atom found"
assert linking_atom_idx is not None, (
"Expecting a prior bond, but no linking atom found"
)

# Add the residue to the current molecule
atom_name_to_mol_idx: dict[str, int] = {}
Expand Down Expand Up @@ -449,9 +449,9 @@ def _add_to_molecule(

if linking_atom_idx is not None:
linking_bond = residue_match.residue_definition.linking_bond
assert (
linking_bond is not None
), "linking_atom_idx is only set when linking_atom_idx is None"
assert linking_bond is not None, (
"linking_atom_idx is only set when linking_atom_idx is None"
)
this_molecule._add_bond(
atom1=linking_atom_idx,
atom2=atom_name_to_mol_idx[linking_bond.atom2],
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ maintainers = [
{ name = "Josh Mitchell", email = "[email protected]" },
]
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.11"
dependencies = [
]
keywords = [
Expand Down

0 comments on commit e5264ab

Please sign in to comment.