From acff838df3a78349f629d1221cee31ec9cf4e46a Mon Sep 17 00:00:00 2001 From: "panxuchen.pxc" Date: Wed, 10 Jul 2024 20:57:07 +0800 Subject: [PATCH] fix pre-commit --- .github/workflows/benchmark.yml | 1 + examples/distributed_simulation/bench.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 0b981fa13..58c0c6393 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -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 diff --git a/examples/distributed_simulation/bench.py b/examples/distributed_simulation/bench.py index 80dae65a7..64a8537b0 100644 --- a/examples/distributed_simulation/bench.py +++ b/examples/distributed_simulation/bench.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """Simulation benchmark Please install pytest and pytest-benchmark to run this benchmark. @@ -5,12 +6,12 @@ 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