mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:44:56 +00:00
[ty] Change environment.root
to accept multiple paths (#18913)
This commit is contained in:
parent
0194452928
commit
833be2e66a
4 changed files with 39 additions and 28 deletions
|
@ -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"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue