Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2659)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.4](astral-sh/ruff-pre-commit@v0.8.6...v0.9.4)
- [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](codespell-project/codespell@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 <j.h.kwakkel@tudelft.nl>
  • Loading branch information
pre-commit-ci[bot] and quaquel authored Feb 4, 2025
1 parent 2af4b70 commit ca0f625
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: [
Expand Down
6 changes: 3 additions & 3 deletions tests/test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ca0f625

Please sign in to comment.