Drop flake8-noqa and remove workarounds to work with Ruff (#13571)

This commit is contained in:
Avasam
2025-03-03 09:48:59 -05:00
committed by GitHub
parent 96c3fe712a
commit cc206f760d
9 changed files with 14 additions and 26 deletions
+1 -3
View File
@@ -91,9 +91,7 @@ class FrozenDict(dict[_KT, _VT]):
@classmethod
def fromkeys(cls, keys: Iterable[_KT], value: _VT | None = None) -> Self: ... # type: ignore[override]
def updated(self, *a, **kw) -> Self: ...
# Can't noqa because of https://github.com/plinss/flake8-noqa/pull/30
# Signature conflicts with superclass, so let's just omit it
# def __ior__(self, *a, **kw) -> NoReturn: ...
def __ior__(self, *a, **kw) -> NoReturn: ... # type: ignore[misc] # noqa: Y034 # Signature conflicts with superclass
def __setitem__(self, *a, **kw) -> NoReturn: ...
def __delitem__(self, *a, **kw) -> NoReturn: ...
def update(self, *a, **kw) -> NoReturn: ...
-3
View File
@@ -10,9 +10,6 @@ from pandas._typing import Scalar
from ..base import _ConvertibleToCRS
from ..geodataframe import GeoDataFrame
# inline ruff noqa at _SqlalchemyConnectionLike.__enter__ confuses flake8
# ruff: noqa: PYI034
# Start SQLAlchemy hack
# ---------------------
# The code actually explicitly checks for SQLAlchemy's `Connection` and `Engine` with
-1
View File
@@ -1,4 +1,3 @@
# flake8: noqa: NQA102 # https://github.com/plinss/flake8-noqa/issues/22
# six explicitly re-exports builtins. Normally this is something we'd want to avoid.
# But this is specifically a compatibility package.
from builtins import * # noqa: UP029