You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERA001 skips PEP 723 inline script metadata blocks as of #10455, except that it stops skipping after the first # /// line. However, a metadata block continues if the following lines are valid embedded content followed by another # /// line. ERA001 should skip over the full metadata block.
For example, this script (named era001.py) contains metadata with an embedded # /// line.
The script works, which shows that the first # /// line does not end the block. (I am using uv, but this could work with any tool that interprets inline metadata.)
Precedence for an ending line # /// is given when the next line is not a valid embedded content line as described above. For example, the following is a single fully valid block:
# /// some-toml# embedded-csharp = """# /// <summary># /// text# ///# /// </summary># public class MyClass { }# """# ///
ERA001 skips PEP 723 inline script metadata blocks as of #10455, except that it stops skipping after the first
# ///
line. However, a metadata block continues if the following lines are valid embedded content followed by another# ///
line. ERA001 should skip over the full metadata block.For example, this script (named era001.py) contains metadata with an embedded
# ///
line.The script works, which shows that the first
# ///
line does not end the block. (I am using uv, but this could work with any tool that interprets inline metadata.)However, Ruff reports an error.
The text was updated successfully, but these errors were encountered: