Skip to content

ERA001 conflicts with ruff: ignore supression #25535

@93578237

Description

@93578237
# ruff: ignore[ARG001]
def foo(bar, baz):
    return bar * 2

Run ruff check --isolated --select ARG,ERA --preview t2.py:

error[[ERA001](https://docs.astral.sh/ruff/rules/commented-out-code)]: Found commented-out code
 --> t2.py:1:1
  |
1 | # ruff: ignore[ARG001]
  | ^^^^^^^^^^^^^^^^^^^^^^
2 | def foo(bar, baz):
3 |     return bar * 2
  |
help: Remove commented-out code

Found 1 error.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingruleImplementing or modifying a lint rule

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions