From fef053e92122b2427bc18aad6df4cfc3daed8723 Mon Sep 17 00:00:00 2001 From: FasterSpeeding Date: Wed, 1 Jan 2025 13:53:09 +0000 Subject: [PATCH] Ignore PGH003 globally (#653) --- docs_src/asgi.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs_src/asgi.py b/docs_src/asgi.py index 6f4ed439..74b81bbd 100644 --- a/docs_src/asgi.py +++ b/docs_src/asgi.py @@ -12,7 +12,7 @@ # pyright: reportArgumentType=none import os -import agraffe # type: ignore # TODO: add py.typed to agraffe # noqa: PGH003 +import agraffe # type: ignore # TODO: add py.typed to agraffe import fastapi import tanjun diff --git a/pyproject.toml b/pyproject.toml index 76b95fec..9a196e43 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -245,6 +245,7 @@ ignore = [ "I001", # [*] Import block is un-sorted or un-formatted "N818", # Exception name `FailedModuleUnload` should be named with an Error suffix "PD011", # Use `.to_numpy()` instead of `.values` + "PGH003", # Use specific rule codes when ignoring type issues "PLR1714", # Consider merging multiple comparisons: ``. Use a `set` if the elements are hashable. "PYI041", # Use `float` instead of `int | float` "S101", # Use of `assert` detected @@ -299,7 +300,6 @@ ignore = [ "FBT002", # Boolean default positional argument in function definition "FBT003", # Boolean positional value in function call "PLR0915", # Too many statements - "PGH003", # Use specific rule codes when ignoring type issues "PLR2004", # Magic value used in comparison, consider replacing `` with a constant variable "SLF001", # Private member accessed: `` "S106", # Possible hardcoded password assigned to argument: