Skip to content

Commit

Permalink
fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c committed Jul 10, 2024
1 parent 31a4539 commit acff838
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
with:
name: Python Benchmark with pytest-benchmark
tool: 'pytest'
gh-pages-branch: gh-bench-pages
output-file-path: examples/distributed_simulation/output.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
Expand Down
5 changes: 3 additions & 2 deletions examples/distributed_simulation/bench.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# -*- coding: utf-8 -*-
"""Simulation benchmark
Please install pytest and pytest-benchmark to run this benchmark.
"""

import pytest # pylint: disable=W0611
from participant import Moderator, RandomParticipant, LLMParticipant
from main import run_main_process
from main import run_main_process # pylint: disable=E0611
import agentscope
from agentscope.server import RpcAgentServerLauncher


def test_simulation(benchmark):
def test_simulation(benchmark): # type: ignore[no-untyped-def]
"""A single benchmark for the simulation"""
base_port = 23300
par_server_num = 4
Expand Down

0 comments on commit acff838

Please sign in to comment.