diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0fe7f27..6f27e8c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,13 +2,13 @@ ci: autoupdate_schedule: quarterly repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.5 + rev: v0.5.0 hooks: # Run the linter. - id: ruff diff --git a/swn/file.py b/swn/file.py index d86524f..cccae92 100644 --- a/swn/file.py +++ b/swn/file.py @@ -165,7 +165,7 @@ def gdf_to_shapefile(gdf, shp_fname, **kwargs): for col, dtype in gdf.dtypes.items(): if col == geom_name: continue - if dtype == bool: + if dtype is bool: gdf[col] = gdf[col].astype(int) elif np.issubdtype(dtype, np.number): pass