Skip to content

--extend-select and --extend-ignore work in unexpected ways #2300

@not-my-profile

Description

@not-my-profile
$ ruff --select E501 --ignore ALL scripts
scripts/add_rule.py:44:89: E501 Line too long (92 > 88 characters)
$ ruff --select E501 --extend-ignore ALL scripts
# (nothing)

I would expect --extend-select and --extend-ignore to simply append the values to the --select and --ignore values however they in fact take precedence over the former.

I find the current behavior to be unintuitive, is it intentional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions