Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#99)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
- [github.com/astral-sh/ruff-pre-commit: v0.4.5 → v0.5.0](astral-sh/ruff-pre-commit@v0.4.5...v0.5.0)

* Use 'is' for type comparison

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Mike Taves <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and mwtoews authored Jul 1, 2024
1 parent eeb3ad6 commit 29b480b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion swn/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29b480b

Please sign in to comment.