Skip to content

Commit ece449c

Browse files
ignore PGH003 globally (#484)
1 parent df6c7bd commit ece449c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

alluka/_context.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_type_dependency(self, type_: type[_T], /, *, default: _DefaultT) -> _T |
8989
def get_type_dependency(self, type_: type[_T], /, *, default: _DefaultT | _NoValue = _NO_VALUE) -> _T | _DefaultT:
9090
# <<inherited docstring from alluka.abc.Context>>.
9191
if type_ is alluka.Context:
92-
return self # type: ignore # noqa: PGH003
92+
return self # type: ignore
9393

9494
result = self._client.get_type_dependency(type_, default=default)
9595

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ ignore = [
196196
"COM812", # Trailing comma missing (incompatible with black)
197197
"FIX002", # Line contains TODO, consider resolving the issue
198198
"I001", # [*] Import block is un-sorted or un-formatted
199+
"PGH003", # Use specific rule codes when ignoring type issues
199200
"S101", # Use of `assert` detected
200201
"SIM108", # Use ternary operator `` instead of `if`-`else`-block
201202
"TD002", # Missing author in TODO; try: `# TODO(<author_name>): ...` or `# TODO @<author_name>: ...`
@@ -224,7 +225,6 @@ ignore = [
224225
"D103", # Missing docstring in public function
225226
"D104", # Missing docstring in public package
226227
"FBT001", # Boolean-typed positional argument in function definition
227-
"PGH003", # Use specific rule codes when ignoring type issues
228228
"PLR2004", # Magic value used in comparison, consider replacing `` with a constant variable
229229
"SLF001", # Private member accessed: ``
230230
]

0 commit comments

Comments
 (0)