Skip to content

Commit ad11b9f

Browse files
authored
Update pre-commit hook versions (#257)
1 parent 1c4ee67 commit ad11b9f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ repos:
1717
- id: rst-inline-touching-normal
1818

1919
- repo: https://github.com/codespell-project/codespell
20-
rev: v2.3.0
20+
rev: v2.4.1
2121
hooks:
2222
- id: codespell
2323
additional_dependencies:
2424
- tomli
2525
exclude: (\.(svg|png|pdf)$)|(CODE_OF_CONDUCT.md)
2626

2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.8.0
28+
rev: v0.9.5
2929
hooks:
3030
- id: ruff
3131
args: [--fix, --exit-non-zero-on-fix, --show-fixes]

src/data_morph/bounds/bounding_box.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def __eq__(self, other: BoundingBox) -> bool:
9595
return self.x_bounds == other.x_bounds and self.y_bounds == other.y_bounds
9696

9797
def __repr__(self) -> str:
98-
return '<BoundingBox>\n' f' x={self.x_bounds}' '\n' f' y={self.y_bounds}'
98+
return f'<BoundingBox>\n x={self.x_bounds}\n y={self.y_bounds}'
9999

100100
def adjust_bounds(self, x: Number | None = None, y: Number | None = None) -> None:
101101
"""

src/data_morph/data/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _validate_data(self, data: pd.DataFrame) -> pd.DataFrame:
175175
raise ValueError(
176176
'Columns "x" and "y" are required for datasets. The provided '
177177
'dataset is missing the following column(s): '
178-
f"{', '.join(sorted(missing_columns))}."
178+
f'{", ".join(sorted(missing_columns))}.'
179179
)
180180
data = data.rename(columns={col.upper(): col for col in missing_columns})
181181

tests/test_morpher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def test_saving_data(self, tmp_path):
225225
with pytest.raises(AssertionError):
226226
assert_frame_equal(
227227
pd.read_csv(
228-
tmp_path / f'{base_file_name}-data-{num_frames//2:03d}.csv'
228+
tmp_path / f'{base_file_name}-data-{num_frames // 2:03d}.csv'
229229
),
230230
morphed_data,
231231
)

0 commit comments

Comments
 (0)