style: ruff format normalization to line-length=100
Committed code predated the line-length=100 ruff config; this brings the five drifted files into compliance. No logic change. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -240,9 +240,36 @@ def _parse_claims(markdown: str) -> list[Claim]:
|
||||
|
||||
_STOPWORDS: frozenset[str] = frozenset(
|
||||
{
|
||||
"the", "a", "an", "in", "on", "of", "to", "is", "are", "was", "were",
|
||||
"and", "or", "but", "for", "with", "this", "that", "it", "we", "they",
|
||||
"be", "as", "at", "by", "from", "has", "have", "not", "which",
|
||||
"the",
|
||||
"a",
|
||||
"an",
|
||||
"in",
|
||||
"on",
|
||||
"of",
|
||||
"to",
|
||||
"is",
|
||||
"are",
|
||||
"was",
|
||||
"were",
|
||||
"and",
|
||||
"or",
|
||||
"but",
|
||||
"for",
|
||||
"with",
|
||||
"this",
|
||||
"that",
|
||||
"it",
|
||||
"we",
|
||||
"they",
|
||||
"be",
|
||||
"as",
|
||||
"at",
|
||||
"by",
|
||||
"from",
|
||||
"has",
|
||||
"have",
|
||||
"not",
|
||||
"which",
|
||||
}
|
||||
)
|
||||
|
||||
@@ -360,12 +387,8 @@ def _detect_conflicts(
|
||||
for bk2 in bibkeys[i + 1 :]:
|
||||
# Check if any chunk from bk1 contains a conflict keyword
|
||||
# and any chunk from bk2 also does — heuristic signal only
|
||||
bk1_has_conflict = any(
|
||||
_CONFLICT_KEYWORDS.search(c) for c in by_bib[bk1]
|
||||
)
|
||||
bk2_has_conflict = any(
|
||||
_CONFLICT_KEYWORDS.search(c) for c in by_bib[bk2]
|
||||
)
|
||||
bk1_has_conflict = any(_CONFLICT_KEYWORDS.search(c) for c in by_bib[bk1])
|
||||
bk2_has_conflict = any(_CONFLICT_KEYWORDS.search(c) for c in by_bib[bk2])
|
||||
if bk1_has_conflict and bk2_has_conflict:
|
||||
conflicts.append((slug, bk1, bk2))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user