mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
[eradicate
] Correctly handle metadata blocks directly followed by normal blocks (ERA001
) (#15330)
## Summary Resolves #15321. ## Test Plan `cargo nextest run` and `cargo insta test`.
This commit is contained in:
parent
b2a0d68d70
commit
3b3c2c5aa4
3 changed files with 20 additions and 24 deletions
|
@ -76,3 +76,16 @@ print(1)
|
|||
# "requests<3",
|
||||
# "rich",
|
||||
# ]
|
||||
|
||||
# Script tag block followed by normal block (Ok)
|
||||
|
||||
# /// script
|
||||
# # https://github.com/astral-sh/ruff/issues/15321
|
||||
# requires-python = ">=3.12"
|
||||
# dependencies = [
|
||||
# "requests<3",
|
||||
# "rich",
|
||||
# ]
|
||||
# ///
|
||||
#
|
||||
# Foobar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue