diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 394f9b0e..376e891e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,7 +29,7 @@ repos: exclude: (\.(svg|png|pdf)$)|(CODE_OF_CONDUCT.md) - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.6 + rev: v0.11.4 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] @@ -48,7 +48,7 @@ repos: files: tests/.* - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.5.0 + rev: v2.5.1 hooks: - id: pyproject-fmt args: [--keep-full-version, --no-print-diff] diff --git a/src/data_morph/morpher.py b/src/data_morph/morpher.py index c2279a70..c7a5483f 100644 --- a/src/data_morph/morpher.py +++ b/src/data_morph/morpher.py @@ -184,7 +184,7 @@ def _select_frames( # add transition frames frames.extend( [ - int(round(easing_function(x) * iterations)) + round(easing_function(x) * iterations) for x in np.arange(0, 1, 1 / (self.num_frames - freeze_for // 2)) ] )