From 979e2c549a0d3fc03eaf3aafe38e9bf7de24f4fd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 19 Jul 2023 12:20:01 +0200 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#212) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/macisamuele/language-formatters-pre-commit-hooks: v2.9.0 → v2.10.0](https://github.com/macisamuele/language-formatters-pre-commit-hooks/compare/v2.9.0...v2.10.0) - [github.com/psf/black: 23.3.0 → 23.7.0](https://github.com/psf/black/compare/23.3.0...23.7.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.276 → v0.0.278](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.276...v0.0.278) * chore(ci): apply ruff's suggestion * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jérome Eertmans --- .pre-commit-config.yaml | 6 +++--- example.py | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 759d8f1..c115de6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: isort name: isort (python) - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks - rev: v2.9.0 + rev: v2.10.0 hooks: - id: pretty-format-yaml args: [--autofix] @@ -20,11 +20,11 @@ repos: exclude: poetry.lock args: [--autofix] - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.7.0 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.276 + rev: v0.0.278 hooks: - id: ruff - repo: https://github.com/pre-commit/mirrors-mypy diff --git a/example.py b/example.py index fc7a8f2..77469f4 100644 --- a/example.py +++ b/example.py @@ -346,7 +346,10 @@ else: ) self.play(GrowFromCenter(circle)) - updater = lambda m, dt: m.increment_theta((75 * DEGREES / 4) * dt) + + def updater(m, dt): + return m.increment_theta((75 * DEGREES / 4) * dt) + frame.add_updater(updater) self.next_slide()