From 2736c53b7c60a79108aa1133c02452310b337ac9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Sep 2024 19:21:31 +0000 Subject: [PATCH 1/2] Bump ruff from 0.6.2 to 0.6.3 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.6.2 to 0.6.3. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.6.2...0.6.3) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index eed327b..15d11e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ test = [ "pytest", "pytest-cov", "pytest-xdist", - "ruff==0.6.2", + "ruff==0.6.3", ] dev = [ "cogapp", @@ -58,7 +58,7 @@ dev = [ "pytest", "pytest-cov", "pytest-xdist", - "ruff==0.6.2", + "ruff==0.6.3", ] doc = ["click", "ipykernel", From 47bbd9da257b25b957ee8e55c7a1c79ee0a48a41 Mon Sep 17 00:00:00 2001 From: Gavin Huttley Date: Wed, 4 Sep 2024 07:51:57 +1000 Subject: [PATCH 2/2] MAINT: address deprecation warning --- tests/test_record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_record.py b/tests/test_record.py index 9194ff8..48c17a4 100644 --- a/tests/test_record.py +++ b/tests/test_record.py @@ -439,7 +439,7 @@ def test_make_kmerseq(new_seq): seq = make_seq(seq=raw, name=name, moltype="dna", new_type=new_seq) seq.info.source = "source1" kseq = make_kmerseq(seq, dtype=dtype, k=2, moltype="dna") - alpha = get_moltype("dna", new_type=True).alphabet.get_word_alphabet(2) + alpha = get_moltype("dna", new_type=True).alphabet.get_kmer_alphabet(2) expect_kmers = alpha.to_indices(raw, independent_kmer=False) expect = zeros(len(alpha), dtype=dtype) expect[expect_kmers] = 1