Skip to content

Add ruff rule RUF100 #1400

@DimitriPapadopoulos

Description

@DimitriPapadopoulos

How would this feature be useful?

RUF100 detects unused noqa directives.

$ ruff check --extend-select RUF100
src/pipx/__main__.py:11:28: RUF100 [*] Unused blanket `noqa` directive
src/pipx/venv_inspect.py:111:37: RUF100 [*] Unused `noqa` directive (unknown: `T484`)
Found 2 errors.
[*] 2 fixable with the `--fix` option.

Describe the solution you'd like

Fix issues reported by ruff check --extend-select RUF100 and add RUF100 to pyproject.toml.

Describe alternatives you've considered

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions