From ca0f625045d0ce66af37593a16984886aaded050 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 4 Feb 2025 08:10:56 -0500 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#2659) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.4) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.1) * [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: Jan Kwakkel --- .pre-commit-config.yaml | 4 ++-- tests/test_agent.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 308e345a6a9..c2a8e8d3d4c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.8.6 + rev: v0.9.4 hooks: # Run the linter. - id: ruff @@ -25,7 +25,7 @@ repos: - id: check-toml - id: check-yaml - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.1 hooks: - id: codespell args: [ diff --git a/tests/test_agent.py b/tests/test_agent.py index b1ca0ba0eb7..95f7fcfe288 100644 --- a/tests/test_agent.py +++ b/tests/test_agent.py @@ -500,9 +500,9 @@ def test_method(self): original_order = list(agentset) shuffled_order = [] agentset.shuffle_do(lambda agent: shuffled_order.append(agent)) - assert ( - original_order != shuffled_order - ), "The order should be different after shuffle_do" + assert original_order != shuffled_order, ( + "The order should be different after shuffle_do" + ) class AgentWithRemove(Agent): def __init__(self, model):