Skip to content

Commit 62a5998

Browse files
authored
chore: Enable spellcheck (#177)
1 parent 577b8e9 commit 62a5998

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ repos:
1313
- id: end-of-file-fixer
1414
- id: trailing-whitespace
1515
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
rev: v0.9.3
16+
rev: v0.9.6
1717
hooks:
1818
- id: ruff
1919
files: spatialpandas/
20-
# - repo: https://github.com/codespell-project/codespell
21-
# rev: v2.3.0
22-
# hooks:
23-
# - id: codespell
24-
# additional_dependencies:
25-
# - tomli
20+
- repo: https://github.com/codespell-project/codespell
21+
rev: v2.4.1
22+
hooks:
23+
- id: codespell
24+
additional_dependencies:
25+
- tomli
2626

2727
ci:
2828
autofix_prs: false

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Bug fixes:
229229
- `read_parquet_dask` fails to read from s3 glob ([#34](https://github.com/holoviz/spatialpandas/issues/34))
230230
- Tests failing with `ValueError: Cannot mask with a boolean indexer containing NA values` ([#41](https://github.com/holoviz/spatialpandas/issues/41))
231231
- Tests in `test_parquet` failing with `TypeError: argument of type 'PosixPath' is not iterable` ([#42](https://github.com/holoviz/spatialpandas/issues/42))
232-
- Create temp directory for partitions explitictly, fixes failure of test `test_pack_partitions_to_parquet`
232+
- Create temp directory for partitions explicitly, fixes failure of test `test_pack_partitions_to_parquet`
233233

234234
Compatibility:
235235

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,8 @@ extend-unsafe-fixes = [
129129
[tool.ruff.lint.isort]
130130
known-first-party = ["spatialpandas"]
131131
combine-as-imports = true
132+
133+
[tool.codespell]
134+
ignore-words-list = "ser,vor,secondy"
135+
skip = "examples/Overview.ipynb"
136+
write-changes = true

spatialpandas/tests/tools/test_sjoin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ def test_sjoin(how, gp_points, gp_polygons):
4343
gp_expected = gp_expected.rename(columns={"v_x": "v_left", "v_y": "v_right"})
4444
if how == "right":
4545
gp_expected.index.name = right_gpdf.index.name
46-
gp_expected = gp_expected.rename(columns={"a_left": "index_left", "a_right": "a"}) # geopandas 1.0 compability
46+
gp_expected = gp_expected.rename(columns={"a_left": "index_left", "a_right": "a"}) # geopandas 1.0 compatibility
4747
else:
4848
gp_expected.index.name = left_gpdf.index.name
49-
gp_expected = gp_expected.rename(columns={"b": "index_right", "a_right": "a"}) # geopandas 1.0 compability
49+
gp_expected = gp_expected.rename(columns={"b": "index_right", "a_right": "a"}) # geopandas 1.0 compatibility
5050

5151
# join with spatialpandas
5252
left_spdf = GeoDataFrame(left_gpdf)

0 commit comments

Comments
 (0)