[red-knot] Allow module-resolution options to be specified via the CLI
Summary
This allows us to pass arguments such as --custom-typeshed-dir and --target-version directly to the red-knot CLI, for easier experimentation and validation locally.
(The PR is stacked on top of https://github.com/astral-sh/ruff/pull/12215)
Test Plan
Lots of manual testing, for example:
Screenshots
The summary is half honest haha. The biggest change is that this is pr migrates to Clap 😂
ruff-ecosystem results
Linter (stable)
✅ ecosystem check detected no linter changes.
Linter (preview)
✅ ecosystem check detected no linter changes.
Formatter (stable)
✅ ecosystem check detected no format changes.
Formatter (preview)
✅ ecosystem check detected no format changes.
The summary is half honest haha. The biggest change is that this is pr migrates to Clap
just a means to an end ;)