Skip to content

Commit 9062d59

Browse files
authored
chore: update pre-commit hooks (#257)
1 parent b9c4939 commit 9062d59

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0
3+
rev: v6.0.0
44
hooks:
55
- id: trailing-whitespace
66
exclude: |
@@ -12,8 +12,8 @@ repos:
1212
- id: check-yaml
1313
- id: check-added-large-files
1414
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.5.1
15+
rev: v0.14.0
1616
hooks:
17-
- id: ruff
17+
- id: ruff-check
1818
args: [--fix, --show-fixes, --exit-non-zero-on-fix]
1919
- id: ruff-format

keybert/_maxsum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def max_sum_distance(
3131
List[Tuple[str, float]]: The selected keywords/keyphrases with their distances
3232
"""
3333
if nr_candidates < top_n:
34-
raise Exception("Make sure that the number of candidates exceeds the number " "of keywords to return.")
34+
raise Exception("Make sure that the number of candidates exceeds the number of keywords to return.")
3535
elif top_n > len(words):
3636
return []
3737

0 commit comments

Comments
 (0)