[ty] Add separate CI job for memory usage stats (#19134)

## Summary

As discussed in https://github.com/astral-sh/ruff/pull/19059.
This commit is contained in:
Ibraheem Ahmed 2025-07-07 12:17:02 -04:00 committed by GitHub
parent 56258bb3b7
commit cd848986d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 118 additions and 44 deletions

View file

@ -296,6 +296,11 @@ impl MainLoop {
tracing::warn!("No python files found under the given path(s)");
}
// TODO: We should have an official flag to silence workspace diagnostics.
if std::env::var("TY_MEMORY_REPORT").as_deref() == Ok("mypy_primer") {
return Ok(ExitStatus::Success);
}
let mut stdout = stdout().lock();
if result.is_empty() {