Skip to content

Commit

Permalink
ignore PGH003 globally (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
FasterSpeeding authored Jan 1, 2025
1 parent df6c7bd commit ece449c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alluka/_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_type_dependency(self, type_: type[_T], /, *, default: _DefaultT) -> _T |
def get_type_dependency(self, type_: type[_T], /, *, default: _DefaultT | _NoValue = _NO_VALUE) -> _T | _DefaultT:
# <<inherited docstring from alluka.abc.Context>>.
if type_ is alluka.Context:
return self # type: ignore # noqa: PGH003
return self # type: ignore

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

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ ignore = [
"COM812", # Trailing comma missing (incompatible with black)
"FIX002", # Line contains TODO, consider resolving the issue
"I001", # [*] Import block is un-sorted or un-formatted
"PGH003", # Use specific rule codes when ignoring type issues
"S101", # Use of `assert` detected
"SIM108", # Use ternary operator `` instead of `if`-`else`-block
"TD002", # Missing author in TODO; try: `# TODO(<author_name>): ...` or `# TODO @<author_name>: ...`
Expand Down Expand Up @@ -224,7 +225,6 @@ ignore = [
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"FBT001", # Boolean-typed positional argument in function definition
"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: ``
]
Expand Down

0 comments on commit ece449c

Please sign in to comment.