mdtest.py: do a full mdtest run immediately when the script is executed#17128
mdtest.py: do a full mdtest run immediately when the script is executed#17128AlexWaygood merged 1 commit intomainfrom
Conversation
|
Running |
|
Thanks! I certainly felt the need for this as well. I think it should be the default to run the tests initially, but we could potentially add a CLI flag to skip the initial run? Sometimes I am only working on one single test suite and don't want to run any other tests. Or maybe it would be better to add some sort of filter-argument? I suggest we just merge this and make changes if we feel it's necessary. |
* main: [red-knot] Add property tests for callable types (#17006) [red-knot] Disjointness for callable types (#17094) [red-knot] Flatten `Type::Callable` into four `Type` variants (#17126) mdtest.py: do a full mdtest run immediately when the script is executed (#17128) [red-knot] Fix callable subtyping for standard parameters (#17125) [red-knot] Fix more `redundant-cast` false positives (#17119) Sync vendored typeshed stubs (#17106) [red-knot] support Any as a class in typeshed (#17107) Visit `Identifier` node as part of the `SourceOrderVisitor` (#17110) [red-knot] Don't infer Todo for quite so many tuple type expressions (#17116) CI: Run pre-commit on depot machine (#17120) Error instead of `panic!` when running Ruff from a deleted directory (#16903) (#17054) Control flow graph: setup (#17064) [red-knot] Playground improvements (#17109) [red-knot] IDE crate (#17045) Update dependency vite to v6.2.4 (#17104) [red-knot] Add redundant-cast error (#17100) [red-knot] Narrowing on `in tuple[...]` and `in str` (#17059)
Summary
Currently if I run
uv run crates/red_knot_python_semantic/mdtest.pyfrom the Ruff repo root, I get this output:...And I then have to make some spurious whitespace changes or something to a test file in order to get the script to actually run mdtest. This PR changes mdtest.py so that it does an initial run of all mdtests when you invoke the script, and then starts watching for changes in test files/Rust code.
Test Plan
Now this is the output when I run the script from a terminal: