Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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: |
Expand All @@ -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
2 changes: 1 addition & 1 deletion keybert/_maxsum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []

Expand Down
Loading