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 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 []