import re
pattern = r'^(?P<file>[^:\n]+):((?P<line>\d+):)?((?P<column>\d+):)? (?P<type>\w+): (?P<message>.*)$'
Changes to stubs:
One challenge is that mypy does not allow a replacement stdlib to be used , at least not for all modules.
Specificaly the sys.pyi module seems to be a blocker as mypy just refuses to run if it is included.
A simple /blunt approach would be to just delete the typings/sys.pyi file before running the test.
The Goal is to run mypy across all check and feature folders by re-use the same approach as for the pyright snippet test.
Parsing mypy output There is no simple way to get machine readable output from mypy
workaround: regex hack in the mypy-vscode extension:
Changes to stubs: One challenge is that mypy does not allow a replacement stdlib to be used , at least not for all modules. Specificaly the sys.pyi module seems to be a blocker as mypy just refuses to run if it is included. A simple /blunt approach would be to just delete the
typings/sys.pyi
file before running the test.