Commit 4ee690c
committed
Replace the standalone-import test with an isolated install check in CI
tests/types/test_standalone.py modeled the contract by parsing imports
with ast. A step in the pre-commit job now exercises the contract itself:
`uv run --isolated --no-project --with ./src/mcp-types` resolves only the
package's declared dependencies into an empty environment and imports
every module, so a stray import of the SDK or anything from its stack is
a ModuleNotFoundError. It also sits behind the blocking pre-commit job
rather than the continue-on-error test matrix.1 parent 2c2377a commit 4ee690c
2 files changed
Lines changed: 7 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
| |||
This file was deleted.
0 commit comments