Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Apply a few final review suggestions from Adam
Co-authored-by: Adam Turner <[email protected]>
  • Loading branch information
CAM-Gerlach and AA-Turner committed Aug 18, 2023
commit b006d01508860ff0f6f0da8751ec5243183d519e
3 changes: 3 additions & 0 deletions Doc/tools/check-warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"""
Check the output of running Sphinx in nit-picky mode (missing references).
"""
from __future__ import annotations

import argparse
import itertools
import os
Expand Down Expand Up @@ -78,6 +80,7 @@ def get_diff_lines(ref_a: str, ref_b: str, file: Path) -> list[int]:

# Scrape line offsets + lengths from diff and convert to line numbers
line_matches = DIFF_PATTERN.finditer(diff_output.stdout)
# Removed and added line counts are 1 if not printed
line_match_values = [
line_match.groupdict(default=1) for line_match in line_matches
]
Expand Down