Skip to content

Commit

Permalink
Revert now acceptable check since mypy doesn't generate errors for ev…
Browse files Browse the repository at this point in the history
…ery module
  • Loading branch information
zachaysan committed Dec 9, 2024
1 parent 408e9ad commit c9b44d4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions api/scripts/mypy_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ def main() -> None:
pattern = r"Found (\d+) errors in (\d+) files \(checked (\d+) source files\)"
removal = None

now_acceptable = baseline - current_errors
if now_acceptable:
print("Baseline errors in scripts/mypy_baseline.txt are now acceptable")
print("Remove these errors and commit baseline changes to the branch")
print(now_acceptable)
sys.exit(1)

for error in new_errors:
has_match = re.match(pattern, error)
if has_match:
Expand Down

0 comments on commit c9b44d4

Please sign in to comment.