From 2804479a3fbdb33726a37b843fe98f3fc7ae5642 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 Feb 2025 19:08:27 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.9.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.6...v0.9.7) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7f729bc55..6309ce3ad 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: check-toml - id: debug-statements - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.6 + rev: v0.9.7 hooks: - id: ruff-format - id: ruff From a5a99b11f8456fce82030dcd694d0f6b48e00d0e Mon Sep 17 00:00:00 2001 From: "C. Titus Brown" Date: Mon, 24 Feb 2025 11:20:27 -0800 Subject: [PATCH 2/3] fix beta clippy errors --- src/core/src/errors.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/src/errors.rs b/src/core/src/errors.rs index 870d846f4..8466571d6 100644 --- a/src/core/src/errors.rs +++ b/src/core/src/errors.rs @@ -164,9 +164,9 @@ impl SourmashErrorCode { match error { SourmashError::Internal { .. } => SourmashErrorCode::Internal, SourmashError::Panic { .. } => SourmashErrorCode::Panic, - SourmashError::CannotUpsampleScaled { .. } => SourmashErrorCode::CannotUpsampleScaled, + SourmashError::CannotUpsampleScaled => SourmashErrorCode::CannotUpsampleScaled, SourmashError::MismatchNum { .. } => SourmashErrorCode::MismatchNum, - SourmashError::NeedsAbundanceTracking { .. } => { + SourmashError::NeedsAbundanceTracking => { SourmashErrorCode::NeedsAbundanceTracking } SourmashError::MismatchKSizes => SourmashErrorCode::MismatchKSizes, @@ -187,7 +187,7 @@ impl SourmashErrorCode { SourmashError::InvalidTranslateFrame { .. } => SourmashErrorCode::InvalidTranslateFrame, SourmashError::ReadDataError { .. } => SourmashErrorCode::ReadData, SourmashError::StorageError { .. } => SourmashErrorCode::Storage, - SourmashError::HLLPrecisionBounds { .. } => SourmashErrorCode::HLLPrecisionBounds, + SourmashError::HLLPrecisionBounds => SourmashErrorCode::HLLPrecisionBounds, SourmashError::ANIEstimationError { .. } => SourmashErrorCode::ANIEstimationError, SourmashError::SerdeError { .. } => SourmashErrorCode::SerdeError, SourmashError::IOError { .. } => SourmashErrorCode::Io, From d3e590fc0268767363d89d625244f60b6f243a9e Mon Sep 17 00:00:00 2001 From: "C. Titus Brown" Date: Mon, 24 Feb 2025 11:36:59 -0800 Subject: [PATCH 3/3] fix --- src/core/src/errors.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/src/errors.rs b/src/core/src/errors.rs index 8466571d6..307854409 100644 --- a/src/core/src/errors.rs +++ b/src/core/src/errors.rs @@ -166,9 +166,7 @@ impl SourmashErrorCode { SourmashError::Panic { .. } => SourmashErrorCode::Panic, SourmashError::CannotUpsampleScaled => SourmashErrorCode::CannotUpsampleScaled, SourmashError::MismatchNum { .. } => SourmashErrorCode::MismatchNum, - SourmashError::NeedsAbundanceTracking => { - SourmashErrorCode::NeedsAbundanceTracking - } + SourmashError::NeedsAbundanceTracking => SourmashErrorCode::NeedsAbundanceTracking, SourmashError::MismatchKSizes => SourmashErrorCode::MismatchKSizes, SourmashError::MismatchDNAProt => SourmashErrorCode::MismatchDNAProt, SourmashError::MismatchScaled => SourmashErrorCode::MismatchScaled,