style: fix ruff lint and format issues across service modules

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Justin Visser 2026-02-27 16:24:36 +01:00
parent 72bc046215
commit c0e66c509f
9 changed files with 37 additions and 41 deletions

View file

@ -93,8 +93,12 @@ def find_best_match(
for original_score, cand in top_scored_candidates:
tb_score = 0
if target_year is not None and cand.publication_year is not None and abs(target_year - cand.publication_year) <= 1:
tb_score += 1
if (
target_year is not None
and cand.publication_year is not None
and abs(target_year - cand.publication_year) <= 1
):
tb_score += 1
candidate_author_names = [a.display_name for a in cand.authors if a.display_name]
if _author_overlap_score(target_authors, candidate_author_names):