Skip to content
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
- tomli
exclude: (\.(svg|png|pdf)$)|(CODE_OF_CONDUCT.md)

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
rev: v0.9.5
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
Expand Down
2 changes: 1 addition & 1 deletion src/data_morph/bounds/bounding_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __eq__(self, other: BoundingBox) -> bool:
return self.x_bounds == other.x_bounds and self.y_bounds == other.y_bounds

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

def adjust_bounds(self, x: Number | None = None, y: Number | None = None) -> None:
"""
Expand Down
2 changes: 1 addition & 1 deletion src/data_morph/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def _validate_data(self, data: pd.DataFrame) -> pd.DataFrame:
raise ValueError(
'Columns "x" and "y" are required for datasets. The provided '
'dataset is missing the following column(s): '
f"{', '.join(sorted(missing_columns))}."
f'{", ".join(sorted(missing_columns))}.'
)
data = data.rename(columns={col.upper(): col for col in missing_columns})

Expand Down
2 changes: 1 addition & 1 deletion tests/test_morpher.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def test_saving_data(self, tmp_path):
with pytest.raises(AssertionError):
assert_frame_equal(
pd.read_csv(
tmp_path / f'{base_file_name}-data-{num_frames//2:03d}.csv'
tmp_path / f'{base_file_name}-data-{num_frames // 2:03d}.csv'
),
morphed_data,
)
Expand Down