diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5683dda..1a90d24 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.4 + rev: v0.12.1 hooks: - id: ruff files: spatialpandas/ diff --git a/pyproject.toml b/pyproject.toml index c279ee1..c30c2a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -110,6 +110,7 @@ ignore = [ "E731", # Do not assign a lambda expression, use a def "E741", # Ambiguous variable name "F405", # From star imports + "PLC0415", #`import` should be at the top-level of a file "PLE0604", # Invalid object in `__all__`, must contain only strings "PLE0605", # Invalid format for `__all__` "PLR091", # Too many arguments/branches/statements diff --git a/spatialpandas/geometry/base.py b/spatialpandas/geometry/base.py index 96a6dfe..b81142d 100644 --- a/spatialpandas/geometry/base.py +++ b/spatialpandas/geometry/base.py @@ -179,6 +179,8 @@ class GeometryArray(ExtensionArray): _element_type = Geometry _can_hold_na = True + __hash__: None # Copied from ExtensionArray + # Import / export methods @classmethod def from_geopandas(cls, ga):