[ty] Change environment.root to accept multiple paths (#18913)

This commit is contained in:
Micha Reiser 2025-06-24 14:52:36 +02:00 committed by GitHub
parent 0194452928
commit 833be2e66a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 39 additions and 28 deletions

View file

@ -972,9 +972,9 @@ fn src_root_deprecation_warning_with_environment_root() -> anyhow::Result<()> {
r#"
[tool.ty.src]
root = "./src"
[tool.ty.environment]
root = "./app"
root = ["./app"]
"#,
),
("app/test.py", ""),
@ -1012,9 +1012,9 @@ fn environment_root_takes_precedence_over_src_root() -> anyhow::Result<()> {
r#"
[tool.ty.src]
root = "./src"
[tool.ty.environment]
root = "./app"
root = ["./app"]
"#,
),
("src/test.py", "import my_module"),