Skip to content

Commit

Permalink
Filter out mypy failures for site packages
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan committed Dec 4, 2024
1 parent d572a36 commit 2e79ae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/scripts/mypy_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def main() -> None:
with open(baseline_path, "r") as f:
baseline = set(line.strip() for line in f if line.strip())

# Detect new errors and remove information line
current_errors = set(current_output)
# Detect new errors and remove information line filtering out third party packages
current_errors = {line for line in current_output if "site-packages" not in line}
new_errors = current_errors - baseline
pattern = r"Found (\d+) errors in (\d+) files \(checked (\d+) source files\)"
removal = None
Expand Down

0 comments on commit 2e79ae8

Please sign in to comment.