Skip to content

usethis rule --ignore ERA001 removes comments in ruff.toml #1171

@nathanjmcdougall

Description

@nathanjmcdougall

e.g.

lint.ignore = [
  "ANN401",  # This is too strict for dunder methods.
  "B023",    # Prevents using df.loc[lambda _: ...]; too many false positives.
  "B024",    # This is controversial, ABC's don't always need methods.
  "C408",    # This is controversial, calls to `dict` can be more idiomatic than {}.
]

becomes

lint.ignore = ["ANN401", "B023", "B024", "C408", "ERA001"]

This is a bug.

Metadata

Metadata

Labels

bugSomething isn't working

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