[ty] Exit with 2 if there's any IO error#21508
Conversation
7fbc1c5 to
c8d3c5f
Compare
Diagnostic diff on typing conformance testsNo changes detected when running ty on typing conformance tests ✅ |
|
Hmm, the mypy primer error is annoying The file is encoded in latin-1 and contains Umlaute I believe this is the desired behavior. But we now need a way to exclude this file 😟 |
3c8a5c1 to
f3298fb
Compare
|
|
f3298fb to
e39cfc9
Compare
e39cfc9 to
43f165d
Compare
|
Running ecosystem-analyzer, just to make sure that it also picks up the mypy_primer changes. |
|
| Project | Old Status | New Status | Old Return Code | New Return Code |
|---|---|---|---|---|
pywin32 |
success | abnormal exit | 1 |
2 |
dd-trace-py |
success | abnormal exit | 1 |
2 |
No diagnostic changes detected ✅
Full report with detailed diff (timing results)
|
Ok, it does not automatically pick it up. I need to update the lockfile. |
* origin/main: [ty] Fix flaky tests on macos (#21524) [ty] Add tests for generic implicit type aliases (#21522) [ty] Semantic tokens: consistently add the `DEFINITION` modifier (#21521) Only render hyperlinks for terminals known to support them (#21519) [ty] Keep colorizing `mypy_primer` output (#21515) [ty] Exit with `2` if there's any IO error (#21508) [`ruff`] Fix false positive for complex conversion specifiers in `logging-eager-conversion` (`RUF065`) (#21464) [ty] tighten up handling of subscripts in type expressions (#21503)
* origin/main: [ty] Fix flaky tests on macos (#21524) [ty] Add tests for generic implicit type aliases (#21522) [ty] Semantic tokens: consistently add the `DEFINITION` modifier (#21521) Only render hyperlinks for terminals known to support them (#21519) [ty] Keep colorizing `mypy_primer` output (#21515) [ty] Exit with `2` if there's any IO error (#21508) [`ruff`] Fix false positive for complex conversion specifiers in `logging-eager-conversion` (`RUF065`) (#21464) [ty] tighten up handling of subscripts in type expressions (#21503)
Summary
Fixes astral-sh/ty#354
Exit with a code of
2if there's any IO error (because ty failed to read a file).Test Plan
Updated test