From d0596982df04bd63cde17009bdfadd14a6100638 Mon Sep 17 00:00:00 2001 From: SangBin Cho Date: Thu, 13 Jun 2024 02:06:14 +0900 Subject: [PATCH] [CI] Upgrade codespell version. (#5381) --- .github/workflows/ruff.yml | 2 +- requirements-dev.txt | 2 +- tests/core/test_chunked_prefill_scheduler.py | 2 +- tests/test_sharded_state_loader.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index e71033f828006..773def58fd966 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -25,7 +25,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install ruff==0.1.5 codespell==2.2.6 tomli==2.0.1 isort==5.13.2 + pip install ruff==0.1.5 codespell==2.3.0 tomli==2.0.1 isort==5.13.2 - name: Analysing the code with ruff run: | ruff . diff --git a/requirements-dev.txt b/requirements-dev.txt index 587387a3d582a..0b91d424db2cb 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -3,7 +3,7 @@ yapf==0.32.0 toml==0.10.2 tomli==2.0.1 ruff==0.1.5 -codespell==2.2.6 +codespell==2.3.0 isort==5.13.2 clang-format==18.1.5 diff --git a/tests/core/test_chunked_prefill_scheduler.py b/tests/core/test_chunked_prefill_scheduler.py index 8fce7b4364298..5137f1644194e 100644 --- a/tests/core/test_chunked_prefill_scheduler.py +++ b/tests/core/test_chunked_prefill_scheduler.py @@ -154,7 +154,7 @@ def test_complex(): # Only the first seq group has a new token appended. append_new_token(running[0], 1) - # Add 2 more requsets. + # Add 2 more requests. for i in range(2, 4): _, seq_group = create_dummy_prompt(str(i), prompt_length=60) scheduler.add_seq_group(seq_group) diff --git a/tests/test_sharded_state_loader.py b/tests/test_sharded_state_loader.py index 5bb3a5c5d65e0..9d588b8af9126 100644 --- a/tests/test_sharded_state_loader.py +++ b/tests/test_sharded_state_loader.py @@ -39,7 +39,7 @@ def test_filter_subtensors(): filtered_state_dict = ShardedStateLoader._filter_subtensors(state_dict) assert tuple(filtered_state_dict.keys()) == ("a", "b", "c") for key, tensor in filtered_state_dict.items(): - # NOTE: don't use `euqal` here, as the tensor might contain NaNs + # NOTE: don't use `equal` here, as the tensor might contain NaNs assert tensor is state_dict[key]