ruff/crates/red_knot_python_semantic
David Peter bd27bfab5d
[red-knot] Unify setup_db() functions, add TestDb builder (#14777)
## Summary

- Instead of seven (more or less similar) `setup_db` functions, use just
one in a single central place.
- For every test that needs customization beyond that, offer a
`TestDbBuilder` that can control the Python target version, custom
typeshed, and pre-existing files.

The main motivation for this is that we're soon going to need
customization of the Python version, and I didn't feel like adding this
to each of the existing `setup_db` functions.
2024-12-04 21:36:54 +01:00
..
resources [red-knot] Infer precise types for len() calls (#14599) 2024-12-04 11:16:53 -08:00
src [red-knot] Unify setup_db() functions, add TestDb builder (#14777) 2024-12-04 21:36:54 +01:00
tests mdtest: include test name in printed rerun command (#14684) 2024-11-30 11:01:06 +00:00
build.rs Modernize build scripts (#13837) 2024-10-20 22:35:35 +01:00
Cargo.toml [red-knot] Property tests (#14178) 2024-12-03 13:54:54 +01:00