Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs request: linking mypy's ignore-without-code in PGH003 #9863

Closed
jamesbraza opened this issue Feb 6, 2024 · 1 comment · Fixed by #9879
Closed

Docs request: linking mypy's ignore-without-code in PGH003 #9863

jamesbraza opened this issue Feb 6, 2024 · 1 comment · Fixed by #9879
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@jamesbraza
Copy link
Contributor

mypy has an opt-in rule ignore-without-code that prevents blanket type ignores.

[tool.mypy]
enable_error_code = ["ignore-without-code"]

It would be cool to link this in the PGH003 docs: https://docs.astral.sh/ruff/rules/blanket-type-ignore/#blanket-type-ignore-pgh003

As it is an alternate configuration route to eliminate the need for PGH003

@charliermarsh charliermarsh self-assigned this Feb 7, 2024
@charliermarsh charliermarsh added the documentation Improvements or additions to documentation label Feb 7, 2024
@jamesbraza
Copy link
Contributor Author

Thank you @charliermarsh ! Appreciate your continued efforts for a good user experience with ruff 👍

nkxxll pushed a commit to nkxxll/ruff that referenced this issue Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants