mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Expand type checking to mypy strict files (#165697)
Expands Pyrefly type checking to check the files outlined in the mypy-strict.ini configuration file: Pull Request resolved: https://github.com/pytorch/pytorch/pull/165697 Approved by: https://github.com/ezyang
This commit is contained in:
committed by
PyTorch MergeBot
parent
9095a9dfae
commit
f02e3947f6
@ -36,11 +36,13 @@ def concated_logs() -> str:
|
||||
for log_file in glob.glob(
|
||||
f"{REPO_ROOT}/test/test-reports/**/*.log", recursive=True
|
||||
):
|
||||
# pyrefly: ignore # bad-argument-type
|
||||
logs.append(f"=== {log_file} ===")
|
||||
with open(log_file) as f:
|
||||
# For every line, prefix with fake timestamp for log classifier
|
||||
for line in f:
|
||||
line = line.rstrip("\n") # Remove any trailing newline
|
||||
# pyrefly: ignore # bad-argument-type
|
||||
logs.append(f"2020-01-01T00:00:00.0000000Z {line}")
|
||||
return "\n".join(logs)
|
||||
|
||||
|
Reference in New Issue
Block a user