From 151154ec42d2c729df086ca22ac8307f2a04acd6 Mon Sep 17 00:00:00 2001 From: Heinz-Alexander Fuetterer Date: Fri, 7 Feb 2025 18:38:20 +0100 Subject: [PATCH 1/2] chore: update pre-commit hooks --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 759fa5a6..9b3a80de 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: trailing-whitespace exclude: | @@ -12,8 +12,8 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.1 + rev: v0.14.0 hooks: - - id: ruff + - id: ruff-check args: [--fix, --show-fixes, --exit-non-zero-on-fix] - id: ruff-format From 21c3a16f6e19a7078226ef5bd9491e8d030a5488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heinz-Alexander=20F=C3=BCtterer?= <35225576+afuetterer@users.noreply.github.com> Date: Wed, 15 Oct 2025 14:40:15 +0200 Subject: [PATCH 2/2] style: apply changes from ruff format --- keybert/_maxsum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keybert/_maxsum.py b/keybert/_maxsum.py index 02c0d97f..9707eb08 100644 --- a/keybert/_maxsum.py +++ b/keybert/_maxsum.py @@ -31,7 +31,7 @@ def max_sum_distance( List[Tuple[str, float]]: The selected keywords/keyphrases with their distances """ if nr_candidates < top_n: - raise Exception("Make sure that the number of candidates exceeds the number " "of keywords to return.") + raise Exception("Make sure that the number of candidates exceeds the number of keywords to return.") elif top_n > len(words): return []