Skip to content

Enable ruff rule PGH003 #1501

Closed
Closed
@bearomorphism

Description

@bearomorphism

If you don't mind the extra effort and want better safety, I recommend enabling the ruff rule PGH003.

It enforces that all type: ignore comments must specify a clear scope, rather than ignoring all type checks.
For more details on the drawbacks, please refer to the explanation in the ruff documentation above.

Originally posted by @gbaian10 in #1466 (comment)

Activity

changed the title [-]If you don't mind the extra effort and want better safety, I recommend enabling the `ruff` rule [PGH003](https://docs.astral.sh/ruff/rules/blanket-type-ignore/).[/-] [+]Enable `ruff` rule PGH003[/+] on Jun 4, 2025
bearomorphism

bearomorphism commented on Jun 8, 2025

@bearomorphism
ContributorAuthor

I can quickly implement this.

Lee-W

Lee-W commented on Jun 9, 2025

@Lee-W
Member

Close as 4.8.3 released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Enable `ruff` rule PGH003 · Issue #1501 · commitizen-tools/commitizen